Exemplo n.º 1
0
 private static bool HasProcedureCall(VBAParser.LetStmtContext context, out string argList)
 {
     if (context == null)
     {
         argList = null;
         return(false);
     }
     return(HasProcedureCall(context.expression(), out argList));
 }
Exemplo n.º 2
0
        public void Resolve(VBAParser.LetStmtContext context)
        {
            var letStatement = context.LET();

            ResolveDefault(
                context.lExpression(),
                StatementResolutionContext.LetStatement,
                true,
                letStatement != null);
            ResolveDefault(context.expression());
        }
Exemplo n.º 3
0
        private static bool RHSIsObjectLiteral(VBAParser.LetStmtContext letStmtContext)
        {
            var rhsAsLiteralExpr = letStmtContext.expression() as VBAParser.LiteralExprContext;

            return(rhsAsLiteralExpr?.literalExpression()?.literalIdentifier()?.objectLiteralIdentifier() != null);
        }
Exemplo n.º 4
0
 private static bool RHSIsLiteral(VBAParser.LetStmtContext letStmtContext)
 {
     return(letStmtContext.expression() is VBAParser.LiteralExprContext);
 }
Exemplo n.º 5
0
        private static bool RHSUsesNew(VBAParser.LetStmtContext letStmtContext)
        {
            var expression = letStmtContext.expression();

            return(expression is VBAParser.NewExprContext);
        }
Exemplo n.º 6
0
        private static string GetRHSIdentifierExpressionText(VBAParser.LetStmtContext letStmtContext)
        {
            var expression = letStmtContext.expression();

            return(expression != null && expression is VBAParser.LExprContext ? expression.GetText() : string.Empty);
        }