public override void ExitLiteralExpression(VBAParser.LiteralExpressionContext context)
            {
                var literal = context.STRINGLITERAL();

                if (literal != null && literal.GetText() == "\"\"")
                {
                    _contexts.Add(new QualifiedContext <ParserRuleContext>(CurrentModuleName, context));
                }
            }
Exemplo n.º 2
0
            public override void ExitLiteralExpression(VBAParser.LiteralExpressionContext context)
            {
                var literal = context.STRINGLITERAL();

                if (literal != null && literal.GetText() == "\"\"")
                {
                    _contexts.Add(context);
                }
            }
Exemplo n.º 3
0
        private string SetTypeName(VBAParser.LiteralExpressionContext literalExpression)
        {
            var literalIdentifier = literalExpression.literalIdentifier();

            if (literalIdentifier?.objectLiteralIdentifier() != null)
            {
                return(Tokens.Object);
            }

            return(NotAnObject);
        }
Exemplo n.º 4
0
 private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.LiteralExpressionContext expression, IBoundExpression withBlockVariable, StatementResolutionContext statementContext)
 {
     return(new LiteralDefaultBinding(expression));
 }
Exemplo n.º 5
0
 private static IExpressionBinding Visit(VBAParser.LiteralExpressionContext expression)
 {
     return(new LiteralDefaultBinding(expression));
 }