Example #1
0
 internal SmeltFile(LineNumberedText text, ImmutableList <SmeltLine> lines)
     : base(text.From(0).Length(text.Length))
 {
     this.lines = lines;
 }
Example #2
0
 internal void fragmentTo(LineNumberedText text, int index)
 {
     fragments.Add(text.From(fragmentStart).To(index - 1));
     fragmentStart = index + 1;
 }
Example #3
0
 internal FragmentHelper(LineNumberedText text, int start)
 {
     this.text  = text;
     this.start = start;
 }
Example #4
0
 internal SmeltParser(string sourceText)
 {
     this.sourceText = sourceText;
     this.text       = new LineNumberedText(sourceText);
 }
Example #5
0
 public TextFragment(LineNumberedText fromText, int start, int length)
 {
     this.fromText = fromText;
     this.start    = start;
     this.length   = length;
 }