Browse Source

Lambda-parameters are now shown in the CC list

4.0
Siegfried Pammer 15 years ago
parent
commit
efba806bb0
  1. 2
      src/Libraries/NRefactory/Project/Src/Lexer/VBNet/ExpressionFinder.atg
  2. 1246
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  3. 8
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

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

@ -446,7 +446,7 @@ EventMemberDeclaration =
( "As" (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) | [ "(" [ ParameterList ] ")" ] ) ( "As" (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) | [ "(" [ ParameterList ] ")" ] )
[ "Implements" (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) /*"." IdentifierOrKeyword*/ [ "Implements" (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) /*"." IdentifierOrKeyword*/
{ "," (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) /*"." IdentifierOrKeyword*/ } ] { "," (. PushContext(Context.Type, la, t); .) TypeName (. PopContext(); .) /*"." IdentifierOrKeyword*/ } ]
/* the TypeName production already allows the "." IdentifierOrKeyword syntax, so to avoid an ambiguous grammer we just leave that out */ /* the TypeName production already allows the "." IdentifierOrKeyword syntax, so to avoid an ambiguous grammar we just leave that out */
StatementTerminator StatementTerminator
. .

1246
src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs

File diff suppressed because it is too large Load Diff

8
src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

@ -2232,12 +2232,14 @@ SubLambdaExpression<out LambdaExpression lambda>
(. (.
lambda.ExpressionBody = inner; lambda.ExpressionBody = inner;
lambda.EndLocation = t.EndLocation; // la.Location? lambda.EndLocation = t.EndLocation; // la.Location?
lambda.ExtendedEndLocation = la.Location;
.) .)
| |
EmbeddedStatement<out statement> EmbeddedStatement<out statement>
(. (.
lambda.StatementBody = statement; lambda.StatementBody = statement;
lambda.EndLocation = t.EndLocation; lambda.EndLocation = t.EndLocation;
lambda.ExtendedEndLocation = la.Location;
.) .)
) )
| |
@ -2247,6 +2249,7 @@ SubLambdaExpression<out LambdaExpression lambda>
(. (.
lambda.StatementBody = statement; lambda.StatementBody = statement;
lambda.EndLocation = t.EndLocation; lambda.EndLocation = t.EndLocation;
lambda.ExtendedEndLocation = la.Location;
.) .)
) )
. .
@ -2267,13 +2270,15 @@ FunctionLambdaExpression<out LambdaExpression lambda>
Expr<out inner> Expr<out inner>
(. (.
lambda.ExpressionBody = inner; lambda.ExpressionBody = inner;
lambda.EndLocation = t.EndLocation; // la.Location? lambda.EndLocation = t.EndLocation;
lambda.ExtendedEndLocation = la.Location;
.) .)
| |
EmbeddedStatement<out statement> EmbeddedStatement<out statement>
(. (.
lambda.StatementBody = statement; lambda.StatementBody = statement;
lambda.EndLocation = t.EndLocation; lambda.EndLocation = t.EndLocation;
lambda.ExtendedEndLocation = la.Location;
.) .)
) )
| |
@ -2283,6 +2288,7 @@ FunctionLambdaExpression<out LambdaExpression lambda>
(. (.
lambda.StatementBody = statement; lambda.StatementBody = statement;
lambda.EndLocation = t.EndLocation; lambda.EndLocation = t.EndLocation;
lambda.ExtendedEndLocation = la.Location;
.) .)
) )
. .

Loading…
Cancel
Save