mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-19 01:05:56 +02:00
codetools: parsing class/interface deprecated
git-svn-id: trunk@22451 -
This commit is contained in:
parent
64f6b721a6
commit
c9f863d3a3
@ -2013,6 +2013,8 @@ begin
|
|||||||
RaiseSemicolonAfterPropSpecMissing('nodefault');
|
RaiseSemicolonAfterPropSpecMissing('nodefault');
|
||||||
end else if UpAtomIs('DEPRECATED') then begin
|
end else if UpAtomIs('DEPRECATED') then begin
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
|
if AtomIsStringConstant then
|
||||||
|
ReadConstant(true,false,[]);
|
||||||
if CurPos.Flag<>cafSemicolon then
|
if CurPos.Flag<>cafSemicolon then
|
||||||
RaiseSemicolonAfterPropSpecMissing('deprecated');
|
RaiseSemicolonAfterPropSpecMissing('deprecated');
|
||||||
end else if UpAtomIs('ENUMERATOR') then begin
|
end else if UpAtomIs('ENUMERATOR') then begin
|
||||||
@ -3500,9 +3502,17 @@ begin
|
|||||||
SaveRaiseException(ctsEndForClassNotFound);
|
SaveRaiseException(ctsEndForClassNotFound);
|
||||||
end;
|
end;
|
||||||
if CurPos.Flag=cafEND then begin
|
if CurPos.Flag=cafEND then begin
|
||||||
|
// read extra flags
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED') or
|
if CurPos.Flag=cafSemicolon then
|
||||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('DEPRECATED') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
if AtomIsStringConstant then
|
||||||
|
ReadConstant(true,false,[]);
|
||||||
|
end else if UpAtomIs('PLATFORM')
|
||||||
|
or UpAtomIs('UNIMPLEMENTED') or UpAtomIs('EXPERIMENTAL')
|
||||||
|
or UpAtomIs('LIBRARY')
|
||||||
then
|
then
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if CurPos.Flag=cafSemicolon then
|
if CurPos.Flag=cafSemicolon then
|
||||||
@ -3577,10 +3587,18 @@ begin
|
|||||||
end;
|
end;
|
||||||
if CurPos.Flag=cafEND then begin
|
if CurPos.Flag=cafEND then begin
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED') or
|
if CurPos.Flag=cafSemicolon then
|
||||||
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('DEPRECATED') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
if AtomIsStringConstant then
|
||||||
|
ReadConstant(true,false,[]);
|
||||||
|
end else if UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED') or
|
||||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
||||||
then
|
then
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
|
if CurPos.Flag<>cafSemicolon then
|
||||||
|
UndoReadNextAtom;
|
||||||
end;
|
end;
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user