internal IdentifierAnalyzer ParseIdentifiers(string expression)
        {
            ExpressionParser parser = this.IdentifierParser;
            StringReader     sr     = new StringReader(expression);

            parser.Reset();
            parser.Tokenizer.Reset(sr);

            IdentifierAnalyzer analyzer = parser.Analyzer as IdentifierAnalyzer;

            analyzer.Reset();

            parser.Parse();

            return(parser.Analyzer as IdentifierAnalyzer);
        }
示例#2
0
        private ICollection <string> GetReferences(string expression, ExpressionContext context)
        {
            IdentifierAnalyzer analyzer = context.ParseIdentifiers(expression);

            return(analyzer.GetIdentifiers(context));
        }