Skip to content

Way to record varOrFunction name location inside expression #173

@deerchao

Description

@deerchao

Hi, thanks for the great work you have done.

I wonder what's the best way to record varOrFunction name location inside user provided expression. I think passing Offset and Length in FunctionEvaluationEventArg and VariableEvaluationEventArg would be enough. But it doesn't seem a simple task, because there are many internal recursive invocations of Evaluate(string expression) with sub expressions or even generated expressions, so positions have to be synchronized everywhere.

This is required for automatically variable rename feature planned in my software, if you wonder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions