Implement ViewPolicy for LiteParsedExpanded

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Have LiteParsedExpanded return the appropriate variant based on extension AstNode's view policy, forwarding ViewInfo to the AST node when needed.

      std::variant<DefaultViewPolicy,
                   ViewPolicyFn,
                   DisallowViewType> getViewPolicy() const {
          switch (_astNode->getViewPolicy()) {
              case kCustom:
                  return [this, &](viewName) { _astNode->setViewInfo(viewName); };
              case kDefault: // ...
          }
      }
      

            Assignee:
            Finley Lau
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: