mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:19:23 +02:00
IDE: verbosity
git-svn-id: trunk@42480 -
This commit is contained in:
parent
1bc0d5749a
commit
60925a9ed7
@ -5439,7 +5439,7 @@ procedure TSourceEditor.UpdateIfDefNodeStates(Force: Boolean = False);
|
|||||||
{off $DEFINE VerboseUpdateIfDefNodeStates}
|
{off $DEFINE VerboseUpdateIfDefNodeStates}
|
||||||
{$IFDEF VerboseUpdateIfDefNodeStates}
|
{$IFDEF VerboseUpdateIfDefNodeStates}
|
||||||
const
|
const
|
||||||
VFilePattern='directives';
|
VFilePattern='blaunit';
|
||||||
VMinY=1;
|
VMinY=1;
|
||||||
VMaxY=70;
|
VMaxY=70;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -5509,10 +5509,6 @@ begin
|
|||||||
until (ADirective^.SrcPos<>SrcPos) or (TCodeBuffer(ADirective^.Code)<>Code)
|
until (ADirective^.SrcPos<>SrcPos) or (TCodeBuffer(ADirective^.Code)<>Code)
|
||||||
or (i > Scanner.DirectiveCount);
|
or (i > Scanner.DirectiveCount);
|
||||||
dec(i);
|
dec(i);
|
||||||
{$IFDEF VerboseUpdateIfDefNodeStates}
|
|
||||||
if (Pos(VFilePattern,Code.Filename)>0) and (Y>=VMinY) and (Y<=VMaxY) then
|
|
||||||
debugln(['TSourceEditor.UpdateIfDefNodeStates y=',y,' x=',x,' SET SynState=',dbgs(SynState)]);
|
|
||||||
{$ENDIF}
|
|
||||||
if (ActiveCnt=1) and (InactiveCnt=0) and (SkippedCnt=0) then
|
if (ActiveCnt=1) and (InactiveCnt=0) and (SkippedCnt=0) then
|
||||||
SynState:=idnEnabled
|
SynState:=idnEnabled
|
||||||
else if (InactiveCnt=1) and (ActiveCnt=0) and (SkippedCnt=0) then
|
else if (InactiveCnt=1) and (ActiveCnt=0) and (SkippedCnt=0) then
|
||||||
@ -5521,6 +5517,10 @@ begin
|
|||||||
SynState:=idnTempEnabled
|
SynState:=idnTempEnabled
|
||||||
else
|
else
|
||||||
SynState:=idnInvalid;
|
SynState:=idnInvalid;
|
||||||
|
{$IFDEF VerboseUpdateIfDefNodeStates}
|
||||||
|
if (Pos(VFilePattern,Code.Filename)>0) and (Y>=VMinY) and (Y<=VMaxY) then
|
||||||
|
debugln(['TSourceEditor.UpdateIfDefNodeStates y=',y,' x=',x,' Counts:Inactive=',InactiveCnt,' Active=',ActiveCnt,' Skipped=',SkippedCnt,' SET SynState=',dbgs(SynState)]);
|
||||||
|
{$ENDIF}
|
||||||
EditorComponent.SetIfdefNodeState(Y,X,SynState);
|
EditorComponent.SetIfdefNodeState(Y,X,SynState);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user