mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 16:00:16 +02:00
MG: fixed class completion end of interface/implemention node
git-svn-id: trunk@356 -
This commit is contained in:
parent
96a5cb3237
commit
8b0b91740a
@ -3172,7 +3172,10 @@ end;
|
|||||||
function TPascalParserTool.KeyWordFuncEnd: boolean;
|
function TPascalParserTool.KeyWordFuncEnd: boolean;
|
||||||
// end (parse end of block, e.g. begin..end)
|
// end (parse end of block, e.g. begin..end)
|
||||||
begin
|
begin
|
||||||
CurNode.EndPos:=CurPos.EndPos;
|
if CurNode.Desc in [ctnImplementation,ctnInterface] then
|
||||||
|
CurNode.EndPos:=CurPos.StartPos
|
||||||
|
else
|
||||||
|
CurNode.EndPos:=CurPos.EndPos;
|
||||||
EndChildNode;
|
EndChildNode;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if AtomIsChar('.') then
|
if AtomIsChar('.') then
|
||||||
@ -6957,8 +6960,7 @@ writeln('TCodeCompletionCodeTool.CreateMissingProcBodies Gather existing method
|
|||||||
// -> insert at the end of the implementation section
|
// -> insert at the end of the implementation section
|
||||||
ImplementationNode:=FindImplementationNode;
|
ImplementationNode:=FindImplementationNode;
|
||||||
if ImplementationNode=nil then exit;
|
if ImplementationNode=nil then exit;
|
||||||
Indent:=GetLineIndent(Src,ImplementationNode.StartPos)
|
Indent:=GetLineIndent(Src,ImplementationNode.StartPos);
|
||||||
+ASourceChangeCache.BeautifyCodeOptions.Indent;
|
|
||||||
InsertPos:=ImplementationNode.EndPos;
|
InsertPos:=ImplementationNode.EndPos;
|
||||||
end else begin
|
end else begin
|
||||||
// class is not in interface section
|
// class is not in interface section
|
||||||
|
Loading…
Reference in New Issue
Block a user