Browse Source

* cs.ATG:

* Parser.cs: Fixed unit tests.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3823 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Mike Krüger 17 years ago
parent
commit
21d4f3cfc5
  1. 752
      src/Libraries/NRefactory/Project/Src/Parser/CSharp/Parser.cs
  2. 14
      src/Libraries/NRefactory/Project/Src/Parser/CSharp/cs.ATG

752
src/Libraries/NRefactory/Project/Src/Parser/CSharp/Parser.cs

File diff suppressed because it is too large Load Diff

14
src/Libraries/NRefactory/Project/Src/Parser/CSharp/cs.ATG

@ -1875,17 +1875,9 @@ PrimaryExpr<out Expression pexpr> @@ -1875,17 +1875,9 @@ PrimaryExpr<out Expression pexpr>
| IF (StartOfQueryExpression())
QueryExpression<out pexpr>
| IF (IdentAndDoubleColon())
Identifier (. string namespaceAlias = t.val; .)
"::"
TypeName<out type, true> (.
if (namespaceAlias == "global") {
type.IsGlobal = true;
} else {
type.Type = namespaceAlias + "." + type.Type;
}
pexpr = new TypeReferenceExpression(type);
pexpr.StartLocation = startLocation;
.)
Identifier (. type = new TypeReference(t.val); .)
"::" (. pexpr = new TypeReferenceExpression(type); .)
Identifier (. if (type.Type == "global") { type.IsGlobal = true; type.Type = t.val ?? "?"; } else type.Type += "." + (t.val ?? "?"); .)
/*--- simple name (IdentifierExpression): */
| Identifier

Loading…
Cancel
Save