LINQ3: Add the virtual CanBeRenderedAsPath method to AstExpression

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The LINQ3 translator at times need to know if an AstExpression can be rendered as a path of the form "$x.y.z" or "$$var.x.y.z".

      This question is most easily answered by defining a new virtual method

      • the default implementation of CanBeRenderedAsPath returns false
      • AstVarExpression overrides CanBeRenderedAsPath and returns true
      • AstGetFieldExpression overrides CanBeRenderedAsPath and returns true if the Input CanBeRenderedAsPath and the field name is safe to use in a path

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: