public override AstNode ShallowClone() { var res = new AstTemplateString(Source, Start, End); res.Segments.AddRange(Segments.AsReadOnlySpan()); return(res); }
public override void Transform(TreeTransformer tt) { base.Transform(tt); Prefix = tt.Transform(Prefix); TemplateString = (AstTemplateString)tt.Transform(TemplateString); }
public AstPrefixedTemplateString(Parser parser, Position startLoc, Position endLoc, AstNode prefix, AstTemplateString templateString) : base(parser, startLoc, endLoc) { TemplateString = templateString; Prefix = prefix; }
public AstPrefixedTemplateString(string?source, Position startLoc, Position endLoc, AstNode prefix, AstTemplateString templateString) : base(source, startLoc, endLoc) { TemplateString = templateString; Prefix = prefix; }