Exemple #1
0
        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;
 }
Exemple #4
0
 public AstPrefixedTemplateString(string?source, Position startLoc, Position endLoc, AstNode prefix,
                                  AstTemplateString templateString) : base(source, startLoc, endLoc)
 {
     TemplateString = templateString;
     Prefix         = prefix;
 }