Browse Source

fixed BaseReferenceExpressionTests, ClassReferenceExpressionTests and ThisReferenceExpressionTests

pull/2/head
Siegfried Pammer 15 years ago
parent
commit
0aa43066f0
  1. 4
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  2. 4
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

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

@ -4080,12 +4080,12 @@ out val); @@ -4080,12 +4080,12 @@ out val);
lexer.NextToken();
#line 1748 "VBNET.ATG"
retExpr = new BaseReferenceExpression();
retExpr = new BaseReferenceExpression() { StartLocation = t.Location, EndLocation = t.EndLocation };
} else if (la.kind == 159) {
lexer.NextToken();
#line 1749 "VBNET.ATG"
retExpr = new ClassReferenceExpression();
retExpr = new ClassReferenceExpression() { StartLocation = t.Location, EndLocation = t.EndLocation };
} else SynErr(281);
Expect(26);
IdentifierOrKeyword(

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

@ -1745,8 +1745,8 @@ SimpleNonInvocationExpression<out Expression pexpr> @@ -1745,8 +1745,8 @@ SimpleNonInvocationExpression<out Expression pexpr>
(. pexpr = new TypeReferenceExpression(new TypeReference(val, true)); .)
| "Me" (. pexpr = new ThisReferenceExpression(); .)
| (. Expression retExpr = null; .)
( "MyBase" (. retExpr = new BaseReferenceExpression(); .)
| "MyClass" (. retExpr = new ClassReferenceExpression(); .)
( "MyBase" (. retExpr = new BaseReferenceExpression() { StartLocation = t.Location, EndLocation = t.EndLocation }; .)
| "MyClass" (. retExpr = new ClassReferenceExpression() { StartLocation = t.Location, EndLocation = t.EndLocation }; .)
)
"." IdentifierOrKeyword<out name> (. pexpr = new MemberReferenceExpression(retExpr, name); .)
| "Global" "."

Loading…
Cancel
Save