예제 #1
0
 internal Scanner(Document document, ErrorNodeList errors)
 {
     this.document   = document;
     this.sourceText = document.Text;
     this.maxPos     = document.Text.Length;
     this.errors     = errors;
 }
예제 #2
0
 public static Identifier For(DocumentText text, int offset, int length)
 {
     return(new Identifier(text, offset, length));
 }
예제 #3
0
 public Identifier(DocumentText text, int offset, int length)
     : base(NodeType.Identifier)
 {
     this.name = text.Substring(offset, length);
 }