public FieldDeclarationSyntax(StructDefinitionSyntax parent, JurParser.UninitializedVarDeclarationContext context, bool isPrivate = false) : base(parent, context) { Name = context.ID().GetText(); Type = ToType(context.type()); IsMutable = context.MUTABLE() != null; IsPrivate = isPrivate; ImmediateChildren = ImmutableArray.Create <ITreeNode>().Add(Type); }
public UninitializedVariableDeclarationSyntax(ISyntaxNode parent, JurParser.UninitializedVarDeclarationContext context, UninitializedVariableType uninitializedVariableType) : base(parent, context) { Name = context.ID().GetText(); UninitializedVariableType = uninitializedVariableType; Type = ToType(context.type()); IsMutable = context.MUTABLE() != null; ImmediateChildren = ImmutableArray.Create <ITreeNode>() .Add(Type); }