コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: WordPointer.cs プロジェクト: ajkfds/pluginTcl
        public WordPointer Clone()
        {
            WordPointer ret = new WordPointer(Document, ParsedDocument);

            ret.index     = index;
            ret.length    = length;
            ret.nextIndex = nextIndex;
            return(ret);
        }
コード例 #3
0
 public WordScanner(codeEditor.CodeEditor.CodeDocument document, Tcl.ParsedDocument parsedDocument, bool systemTcl)
 {
     RootParsedDocument = parsedDocument;
     wordPointer        = new WordPointer(document, parsedDocument);
     this.systemTcl     = systemTcl;
 }