Beispiel #1
0
 public IndexerDeclarationNode(Token token,
                               ParseNodeList attributes,
                               Modifiers modifiers,
                               ParseNode type,
                               NameNode interfaceType,
                               ParseNodeList parameters,
                               AccessorNode get,
                               AccessorNode set)
     : base(ParseNodeType.IndexerDeclaration, token, attributes, modifiers, type, interfaceType, get, set)
 {
     Parameters = GetParentedNodeList(parameters);
 }
Beispiel #2
0
 public PropertyDeclarationNode(Token token,
                                ParseNodeList attributes,
                                Modifiers modifiers,
                                ParseNode type,
                                NameNode interfaceType,
                                AtomicNameNode name,
                                AccessorNode getOrRemove,
                                AccessorNode setOrAdd)
     : this(ParseNodeType.PropertyDeclaration, token, attributes, modifiers, type, interfaceType, getOrRemove,
            setOrAdd)
 {
     NameNode = (AtomicNameNode)GetParentedNode(name);
 }
Beispiel #3
0
 protected PropertyDeclarationNode(ParseNodeType nodeType, Token token,
                                   ParseNodeList attributes,
                                   Modifiers modifiers,
                                   ParseNode type,
                                   NameNode interfaceType,
                                   AccessorNode getOrRemove,
                                   AccessorNode setOrAdd)
     : base(nodeType, token)
 {
     Attributes         = GetParentedNodeList(AttributeNode.GetAttributeList(attributes));
     Modifiers          = modifiers;
     Type               = GetParentedNode(type);
     this.interfaceType = (NameNode)GetParentedNode(interfaceType);
     GetAccessor        = (AccessorNode)GetParentedNode(getOrRemove);
     SetAccessor        = (AccessorNode)GetParentedNode(setOrAdd);
 }