Exemplo n.º 1
0
 protected virtual T VisitName(NameNode node)
 {
     return(DefaultResult);
 }
 public ParameterArrayDeclarationNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode,
                                      ExpressionNode arraySizeNode) : base(location, typeNameNode, nameNode)
 {
     ArraySizeNode            = arraySizeNode;
     ArraySizeNode.ParentNode = this;
 }
 protected virtual void VisitName(NameNode node)
 {
 }
        public ConstArrayDefinitionNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode,
                                        ExpressionNode arraySizeNode, List <ExpressionNode> elementNodes) : base(location, typeNameNode, nameNode)
        {
            ArraySizeNode            = arraySizeNode;
            ArraySizeNode.ParentNode = this;

            foreach (var node in elementNodes)
            {
                node.ParentNode = this;
            }

            ElementNodes  = elementNodes;
            ElementValues = new List <NodeValue>();
        }
 public ParameterDeclarationNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode) : base(location, typeNameNode,
                                                                                                         nameNode)
 {
 }
 protected ConstDefinitionNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode) : base(location, typeNameNode, nameNode)
 {
 }
 public ConstDefinitionNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode,
                            ExpressionNode rightSideNode) : base(location, typeNameNode, nameNode, rightSideNode)
 {
 }
 protected SubclassNode(NodeLocation location, string type, NameNode nameNode, InheritanceParentReferenceNode inheritanceParentReferenceNode) : base(location, type, nameNode)
 {
     inheritanceParentReferenceNode.ParentNode = this;
     InheritanceParentReferenceNode            = inheritanceParentReferenceNode;
 }
 protected InheritanceNode(NodeLocation location, string type, NameNode nameNode) : base(location, type, nameNode)
 {
 }
 protected CustomTypeDeclarationNode(NodeLocation location, NameNode typeNameNode, NameNode nameNode) : base(location, typeNameNode.Value, nameNode)
 {
     TypeNameNode            = typeNameNode;
     TypeNameNode.ParentNode = this;
 }