コード例 #1
0
        private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.NewExprContext expression, IBoundExpression withBlockVariable, StatementResolutionContext statementContext)
        {
            var typeExpressionBinding = VisitType(module, parent, expression.expression(), withBlockVariable, StatementResolutionContext.Undefined);

            if (typeExpressionBinding == null)
            {
                return(null);
            }
            return(new NewTypeBinding(_declarationFinder, module, parent, expression, typeExpressionBinding));
        }
コード例 #2
0
        private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.NewExprContext expression, IBoundExpression withBlockVariable)
        {
            var typeExpressionBinding = VisitType(module, parent, expression.expression(), withBlockVariable);

            if (typeExpressionBinding == null)
            {
                return(null);
            }
            return(new NewTypeBinding(expression, typeExpressionBinding));
        }