Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[C#] Fix mapping of TypeMember.Field
Browse files Browse the repository at this point in the history
  • Loading branch information
VladD2 committed Jul 20, 2017
1 parent 8e880f4 commit 4f672aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Grammars/CSharp/CSharp.Grammar/CSharp/AST/Mapping.nitra
Expand Up @@ -265,7 +265,14 @@ namespace CSharp
Modifiers -> Modifiers;
}]
| SimpleEvent -> VariableDeclarators .Item1(EventHeader { AnyType -> Type; Attributes -> Attributes; Modifiers -> Modifiers; })
| Field -> VariableDeclarators .Item1(FieldHeader { AnyType -> Type; Attributes -> Attributes; Modifiers -> Modifiers; })
| Field ->
let header : FieldHeader = FieldHeader { AnyType -> Type; Attributes -> Attributes; Modifiers -> Modifiers; } in
match (VariableDeclarators.Item1)
{
| [] -> [Member.Field { Name = Name(this.Location, "field"); header -> Header; }]
| decls -> decls(header)
}

| Constant -> ConstantDeclarators .Item1(ConstantHeader { AnyType -> Type; Attributes -> Attributes; Modifiers -> Modifiers; })
| FixedSizeBuffer -> FixedSizeBufferDeclarators.Item1(FixedSizeBufferHeader { AnyType -> Type; Attributes -> Attributes; Modifiers -> Modifiers; })
| OperatorUnary -> [Member.OperatorUnary
Expand Down

0 comments on commit 4f672aa

Please sign in to comment.