예제 #1
0
 public override AstStatement Clone()
 => CopyValuesTo(new AstConstantDeclaration(
                     Pattern.Clone(),
                     TypeExpr?.Clone(),
                     Initializer.Clone(),
                     Documentation,
                     Directives?.Select(d => d.Clone()).ToList()));
예제 #2
0
 public AstParameter Clone()
 {
     return(new AstParameter(Name?.Clone() as AstIdExpr, TypeExpr?.Clone(), DefaultValue?.Clone(), Mutable, Location));
 }