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);
        }
Beispiel #2
0
 protected ImmutableArray <UninitializedVariableDeclarationSyntax> ToUninitializedVariablesDefinitions(IEnumerable <JurParser.UninitializedVarDeclarationContext> contexts, UninitializedVariableType uninitializedVariableType)
 {
     return(contexts.Select(x => new UninitializedVariableDeclarationSyntax(this, x, uninitializedVariableType)).ToImmutableArray());
 }