MG: implemented IgnoreErrorAfter position for codetools

git-svn-id: trunk@3135 -
This commit is contained in:
lazarus 2002-08-18 16:49:47 +00:00
parent 8608762170
commit b0513667c6
2 changed files with 6 additions and 3 deletions

View File

@ -1560,7 +1560,7 @@ var CleanCursorPos, Indent, insertPos: integer;
// -> find it and jump to
// reparse code
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos);
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos,[]);
// find CodeTreeNode at cursor
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
@ -1938,12 +1938,15 @@ var CleanCursorPos, Indent, insertPos: integer;
CompleteCode:=true;
end;
// function CompleteCode(CursorPos: TCodeXYPosition;
// var NewPos: TCodeXYPosition; var NewTopLine: integer;
// SourceChangeCache: TSourceChangeCache): boolean;
begin
Result:=false;
if (SourceChangeCache=nil) then
RaiseException('need a SourceChangeCache');
// in a class or in a forward proc?
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos);
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos,[]);
// find CodeTreeNode at cursor
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
CodeCompleteSrcChgCache:=SourceChangeCache;

View File

@ -56,7 +56,7 @@ ResourceString
ctsBracketOpenExpectedButAtomFound = 'bracket open expected, but %s found';
ctsBracketCloseExpectedButAtomFound = 'bracket close expected, but %s found';
ctsBracketNotFound = 'bracket %s not found';
ctsNoNodeFoundAtCursor = 'no node found at cursor';
ctsNoNodeFoundAtCursor = 'no pascal node found at cursor (i.e. in unparsed code)';
ctsUnknownMainFilename = '(unknown mainfilename)';
// pascal parser