Merged revision(s) 56085 #e69881ff9d from trunk:

Codetools: Fix code completion for methods with empty parentheses. Issue #31960.
........

git-svn-id: branches/fixes_1_8@56090 -
This commit is contained in:
maxim 2017-10-16 22:45:47 +00:00
parent 682a2912bd
commit ee2f30dec1

View File

@ -1401,9 +1401,8 @@ begin
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
if (CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose])
and (Src[CurPos.StartPos] = CloseBracket)
then begin
// opening bracket was not streamed, keep ExtractMemStream intact.
ReadNextAtom;
then begin // empty brackets: extract also the closing bracket.
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
exit(true);
end;
end;