File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Rubberduck.Parsing/Binding Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,14 @@ public IBoundExpression Resolve()
75
75
var bracketedExpression = _declarationFinder . OnBracketedExpression ( _context . GetText ( ) , _context ) ;
76
76
return new SimpleNameExpression ( bracketedExpression , ExpressionClassification . Unbound , _context ) ;
77
77
}
78
- else
78
+ //TODO - this is a complete and total hack to prevent `Mid` and `Mid$` from creating undeclared variables
79
+ //pending an actual fix to the grammar. See #2618
80
+ else if ( ! _name . Equals ( "Mid" ) && ! _name . Equals ( "Mid$" ) )
79
81
{
80
82
var undeclaredLocal = _declarationFinder . OnUndeclaredVariable ( _parent , _name , _context ) ;
81
83
return new SimpleNameExpression ( undeclaredLocal , ExpressionClassification . Variable , _context ) ;
82
84
}
83
- // return new ResolutionFailedExpression();
85
+ return new ResolutionFailedExpression ( ) ;
84
86
}
85
87
86
88
private IBoundExpression ResolveProcedureNamespace ( )
You can’t perform that action at this time.
0 commit comments