Browse Source

fixed AddressOfExpressionTests

pull/2/head
Siegfried Pammer 15 years ago
parent
commit
8c1ee70925
  1. 1809
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  2. 17
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

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

File diff suppressed because it is too large Load Diff

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

@ -1674,8 +1674,9 @@ AssignmentOperator<out AssignmentOperatorType op>
/* 11.4 */ /* 11.4 */
SimpleExpr<out Expression pexpr> SimpleExpr<out Expression pexpr>
(. string name; .) (. string name; Location startLocation = la.Location; .)
= =
(
SimpleNonInvocationExpression<out pexpr> SimpleNonInvocationExpression<out pexpr>
{ {
"." ( "." (
@ -1693,6 +1694,13 @@ SimpleExpr<out Expression pexpr>
(. pexpr = new XmlMemberAccessExpression(pexpr, type, name, isXmlName); .) (. pexpr = new XmlMemberAccessExpression(pexpr, type, name, isXmlName); .)
| InvocationExpression<ref pexpr> | InvocationExpression<ref pexpr>
} }
)
(.
if (pexpr != null) {
pexpr.StartLocation = startLocation;
pexpr.EndLocation = t.EndLocation;
}
.)
. .
SimpleNonInvocationExpression<out Expression pexpr> SimpleNonInvocationExpression<out Expression pexpr>
@ -1701,6 +1709,7 @@ SimpleNonInvocationExpression<out Expression pexpr>
CollectionInitializerExpression cie; CollectionInitializerExpression cie;
TypeReference type = null; TypeReference type = null;
string name = String.Empty; string name = String.Empty;
Location startLocation = la.Location;
pexpr = null; pexpr = null;
.) = .) =
( (
@ -1773,6 +1782,12 @@ SimpleNonInvocationExpression<out Expression pexpr>
) )
) )
) )
(.
if (pexpr != null) {
pexpr.StartLocation = startLocation;
pexpr.EndLocation = t.EndLocation;
}
.)
. .
XmlLiteralExpression<out Expression pexpr> XmlLiteralExpression<out Expression pexpr>

Loading…
Cancel
Save