public string InferAsTypeName(VBAParser.LiteralExprContext literalExprContext)
            {
                var asTypeName = _parseTreeValueFactory?.Create(literalExprContext?.GetText()).ValueType ?? Tokens.Variant;

                return(_literalResultModifiers.TryGetValue(asTypeName, out var modifiedAsTypeName)
                    ? modifiedAsTypeName
                    : asTypeName);
            }
示例#2
0
 private IExpressionBinding Visit(Declaration module, Declaration parent, VBAParser.LiteralExprContext expression, IBoundExpression withBlockVariable, StatementResolutionContext statementContext)
 {
     return(Visit(module, parent, expression.literalExpression(), withBlockVariable, StatementResolutionContext.Undefined));
 }