public override void EnterVariable([NotNull] TxMarkParser.VariableContext context)
        {
            var dollarSign = context.DOLLAR_SIGN() ?? context.MDOLLAR_SIGN();
            var word       = context.word().WORD() ?? context.word().MWORD();

            AddTag(dollarSign.Symbol, Classify(PredefinedClassificationTypeNames.SymbolDefinition));
            AddTag(word.Symbol, Classify(PredefinedClassificationTypeNames.SymbolReference));
        }
Exemplo n.º 2
0
        public override void EnterVariable([NotNull] TxMarkParser.VariableContext context)
        {
            _compileContext.SetLocation(context.Start.Line, context.Start.Column);
            var word = context.word();

            if (word == null)
            {
                _compileContext.Punctuation('$');
            }
            else
            {
                _compileContext.Variable(word.GetText());
            }
        }