Exemple #1
0
 public object Clone()
 {
     return(new ASTRestriction(
                (string)this.Key.Clone(),
                (string)this.Value.Clone(),
                ObjectCloner.CloneList(this.Annotations.ToList()),
                (Compiler.Token) this.Token.Clone(),
                this.Depth));
 }
Exemple #2
0
 public object Clone()
 {
     return(new ASTChoice
     {
         Name = (string)this.Name.Clone(),
         Type = ObjectCloner.CloneList(this.Type),
         Options = ObjectCloner.CloneList(this.Options)
     });
 }
 public object Clone()
 {
     return(new ASTDataOption
     {
         Name = (string)this.Name.Clone(),
         Parameters = ObjectCloner.CloneList(this.Parameters.ToList()),
         Annotations = ObjectCloner.CloneList(this.Annotations.ToList()),
     });
 }
Exemple #4
0
 public object Clone()
 {
     return(new ASTAlias
     {
         Name = (string)this.Name.Clone(),
         Type = ObjectCloner.CloneList(this.Type.ToList()),
         Restrictions = ObjectCloner.CloneList(this.Restrictions.ToList()),
         Annotations = ObjectCloner.CloneList(this.Annotations.ToList()),
         Directives = ObjectCloner.CloneList(this.Directives.ToList())
     });
 }
Exemple #5
0
 public ASTType Clone()
 {
     return(new ASTType
     {
         Name = (string)this.Name.Clone(),
         Annotations = ObjectCloner.CloneList(this.Annotations.ToList()),
         Directives = ObjectCloner.CloneList(this.Directives.ToList()),
         Parameters = ObjectCloner.CloneList(this.Parameters.ToList()),
         Extensions = ObjectCloner.CloneList(this.Extensions.ToList()),
         Fields = ObjectCloner.CloneList(this.Fields.ToList())
     });
 }
 public object Clone()
 {
     return(new ASTOption(
                (string)this.Value.Clone(),
                ObjectCloner.CloneList(this.Annotations.ToList())));
 }