|
|
@ -1168,6 +1168,7 @@ MemberModifiers<Modifiers m> |
|
|
|
| "readonly" (. m.Add(Modifier.ReadOnly, t.Location); .) |
|
|
|
| "readonly" (. m.Add(Modifier.ReadOnly, t.Location); .) |
|
|
|
| "sealed" (. m.Add(Modifier.Sealed, t.Location); .) |
|
|
|
| "sealed" (. m.Add(Modifier.Sealed, t.Location); .) |
|
|
|
| "static" (. m.Add(Modifier.Static, t.Location); .) |
|
|
|
| "static" (. m.Add(Modifier.Static, t.Location); .) |
|
|
|
|
|
|
|
| "fixed" (. m.Add(Modifier.Fixed, t.Location); .) |
|
|
|
| "unsafe" (. m.Add(Modifier.Unsafe, t.Location); .) |
|
|
|
| "unsafe" (. m.Add(Modifier.Unsafe, t.Location); .) |
|
|
|
| "virtual" (. m.Add(Modifier.Virtual, t.Location); .) |
|
|
|
| "virtual" (. m.Add(Modifier.Virtual, t.Location); .) |
|
|
|
| "volatile" (. m.Add(Modifier.Volatile, t.Location); .) |
|
|
|
| "volatile" (. m.Add(Modifier.Volatile, t.Location); .) |
|
|
@ -1350,12 +1351,26 @@ StructMemberDecl<Modifiers m, List<AttributeSection> attributes> |
|
|
|
.) |
|
|
|
.) |
|
|
|
|
|
|
|
|
|
|
|
/*--- field declaration: */ |
|
|
|
/*--- field declaration: */ |
|
|
|
| IF (IsVarDecl()) (. m.Check(Modifier.Fields); |
|
|
|
| IF (IsVarDecl()) |
|
|
|
|
|
|
|
(. m.Check(Modifier.Fields); |
|
|
|
FieldDeclaration fd = new FieldDeclaration(attributes, type, m.Modifier); |
|
|
|
FieldDeclaration fd = new FieldDeclaration(attributes, type, m.Modifier); |
|
|
|
fd.StartLocation = m.GetDeclarationLocation(startPos); |
|
|
|
fd.StartLocation = m.GetDeclarationLocation(startPos); |
|
|
|
.) |
|
|
|
.) |
|
|
|
|
|
|
|
( IF (m.Contains(Modifier.Fixed)) |
|
|
|
|
|
|
|
VariableDeclarator<variableDeclarators> |
|
|
|
|
|
|
|
"[" |
|
|
|
|
|
|
|
Expr<out expr> |
|
|
|
|
|
|
|
"]" |
|
|
|
|
|
|
|
{ "," |
|
|
|
|
|
|
|
VariableDeclarator<variableDeclarators> |
|
|
|
|
|
|
|
"[" |
|
|
|
|
|
|
|
Expr<out expr> |
|
|
|
|
|
|
|
"]" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
| /* non-fixed field */ |
|
|
|
VariableDeclarator<variableDeclarators> |
|
|
|
VariableDeclarator<variableDeclarators> |
|
|
|
{ "," VariableDeclarator<variableDeclarators> } |
|
|
|
{ "," VariableDeclarator<variableDeclarators> } |
|
|
|
|
|
|
|
) |
|
|
|
";" (. fd.EndLocation = t.EndLocation; fd.Fields = variableDeclarators; compilationUnit.AddChild(fd); .) |
|
|
|
";" (. fd.EndLocation = t.EndLocation; fd.Fields = variableDeclarators; compilationUnit.AddChild(fd); .) |
|
|
|
|
|
|
|
|
|
|
|
/*--- unqualified indexer declaration (without interface name): */ |
|
|
|
/*--- unqualified indexer declaration (without interface name): */ |
|
|
|