public void MoveNext() { sw0.Start(); if (nonGeneratedCount != 0) { wordPointer.Color(CodeDrawStyle.ColorType.Inactivated); } while (wordPointer.Eof && stock.Count != 0) { bool error = false; if (wordPointer.ParsedDocument.Messages.Count != 0) { error = true; } if (wordPointer.ParsedDocument == stock.Last().ParsedDocument) { error = false; } wordPointer.Dispose(); wordPointer = stock.Last(); stock.Remove(stock.Last()); if (error) { wordPointer.AddError("include errors"); } } wordPointer.MoveNext(); recheckWord(); sw0.Stop(); }
public WordPointer Clone() { WordPointer ret = new WordPointer(Document, ParsedDocument); ret.index = index; ret.length = length; ret.nextIndex = nextIndex; return(ret); }
public WordScanner(codeEditor.CodeEditor.CodeDocument document, Tcl.ParsedDocument parsedDocument, bool systemTcl) { RootParsedDocument = parsedDocument; wordPointer = new WordPointer(document, parsedDocument); this.systemTcl = systemTcl; }