|
|
|
@ -731,7 +731,6 @@ StructMemberDecl<ModifierList m, List<AttributeSection> attributes> |
|
|
|
Expression expr; |
|
|
|
Expression expr; |
|
|
|
List<ParameterDeclarationExpression> p = new List<ParameterDeclarationExpression>(); |
|
|
|
List<ParameterDeclarationExpression> p = new List<ParameterDeclarationExpression>(); |
|
|
|
Statement stmt = null; |
|
|
|
Statement stmt = null; |
|
|
|
List<VariableDeclaration> variableDeclarators = new List<VariableDeclaration>(); |
|
|
|
|
|
|
|
List<TemplateDefinition> templates = new List<TemplateDefinition>(); |
|
|
|
List<TemplateDefinition> templates = new List<TemplateDefinition>(); |
|
|
|
TypeReference explicitInterface = null; |
|
|
|
TypeReference explicitInterface = null; |
|
|
|
bool isExtensionMethod = false; |
|
|
|
bool isExtensionMethod = false; |
|
|
|
@ -918,14 +917,14 @@ StructMemberDecl<ModifierList m, List<AttributeSection> attributes> |
|
|
|
( IF (m.Contains(Modifiers.Fixed)) |
|
|
|
( IF (m.Contains(Modifiers.Fixed)) |
|
|
|
VariableDeclarator<fd> |
|
|
|
VariableDeclarator<fd> |
|
|
|
"[" |
|
|
|
"[" |
|
|
|
Expr<out expr> (. if (variableDeclarators.Count > 0) |
|
|
|
Expr<out expr> (. if (fd.Fields.Count > 0) |
|
|
|
variableDeclarators[variableDeclarators.Count-1].FixedArrayInitialization = expr; .) |
|
|
|
fd.Fields[fd.Fields.Count-1].FixedArrayInitialization = expr; .) |
|
|
|
"]" |
|
|
|
"]" |
|
|
|
{ "," |
|
|
|
{ "," |
|
|
|
VariableDeclarator<fd> |
|
|
|
VariableDeclarator<fd> |
|
|
|
"[" |
|
|
|
"[" |
|
|
|
Expr<out expr> (. if (variableDeclarators.Count > 0) |
|
|
|
Expr<out expr> (. if (fd.Fields.Count > 0) |
|
|
|
variableDeclarators[variableDeclarators.Count-1].FixedArrayInitialization = expr; .) |
|
|
|
fd.Fields[fd.Fields.Count-1].FixedArrayInitialization = expr; .) |
|
|
|
"]" |
|
|
|
"]" |
|
|
|
} |
|
|
|
} |
|
|
|
| /* non-fixed field */ |
|
|
|
| /* non-fixed field */ |
|
|
|
|