Browse Source

Fixed VB expression finder when there are array declarators on the parameter name.

e.g. "Sub Test(Values() As String)"
4.0
Daniel Grunwald 15 years ago
parent
commit
0d96627a19
  1. 1
      src/Libraries/NRefactory/Project/Src/Lexer/VBNet/ExpressionFinder.atg
  2. 2585
      src/Libraries/NRefactory/Project/Src/Lexer/VBNet/Parser.cs

1
src/Libraries/NRefactory/Project/Src/Lexer/VBNet/ExpressionFinder.atg

@ -512,6 +512,7 @@ Parameter = @@ -512,6 +512,7 @@ Parameter =
(. PushContext(Context.Parameter, la, t); .)
{ AttributeBlock } { ParameterModifier }
(. PushContext(Context.Identifier, la, t); .) (.OnEachPossiblePath: SetIdentifierExpected(la); .) Identifier (. PopContext(); .)
[ "?" ] { "(" { "," } ")" }
[ "As" (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) ]
[ "=" Expression ]
(. PopContext(); .)

2585
src/Libraries/NRefactory/Project/Src/Lexer/VBNet/Parser.cs

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save