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