Beispiel #1
0
 public override IExpression VisitCcConst([NotNull] VBAConditionalCompilationParser.CcConstContext context)
 {
     return(new ConditionalCompilationConstantExpression(
                new ConstantExpression(new TokensValue(ParserRuleContextHelper.GetTokens(context, _tokenStream))),
                new ConstantExpression(new StringValue(Identifier.GetName(context.ccVarLhs().name()))),
                Visit(context.ccExpression()),
                _symbolTable));
 }
Beispiel #2
0
 public override IExpression VisitCcConst([NotNull] VBAConditionalCompilationParser.CcConstContext context)
 {
     return(new ConditionalCompilationConstantExpression(
                new ConstantExpression(new StringValue(context.GetText())),
                new ConstantExpression(new StringValue(context.ccVarLhs().name().IDENTIFIER().GetText())),
                Visit(context.ccExpression()),
                _symbolTable));
 }