mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:59:06 +02:00
codetools: var and type sections for classes
git-svn-id: trunk@23415 -
This commit is contained in:
parent
3e0e6a5370
commit
4a0a000909
@ -3499,16 +3499,16 @@ begin
|
|||||||
if CompareSrcIdentifiers(p,'RESOURCESTRING') then
|
if CompareSrcIdentifiers(p,'RESOURCESTRING') then
|
||||||
SaveRaiseException(ctsEndForClassNotFound);
|
SaveRaiseException(ctsEndForClassNotFound);
|
||||||
'T':
|
'T':
|
||||||
if CompareSrcIdentifiers(p,'TYPE')
|
if CompareSrcIdentifiers(p,'THREADVAR') then
|
||||||
and (not CurNode.HasParentOfType(ctnGenericType)) then
|
SaveRaiseException(ctsEndForClassNotFound)
|
||||||
SaveRaiseException(
|
else if CompareSrcIdentifiers(p,'TYPE')
|
||||||
ctsTypeIsOnlyAllowedInGenericsEndOfClassNotFound);
|
and (BracketLvl>0) then
|
||||||
|
SaveRaiseException(ctsEndForClassNotFound);
|
||||||
'V':
|
'V':
|
||||||
if CompareSrcIdentifiers(p,'VAR')
|
if CompareSrcIdentifiers(p,'VAR')
|
||||||
and (BracketLvl=0)
|
and (BracketLvl>1) then begin
|
||||||
and (not CurNode.HasParentOfType(ctnGenericType)) then
|
SaveRaiseException(ctsEndForClassNotFound);
|
||||||
SaveRaiseException(ctsVarIsOnlyAllowedInGenericsEndOfClassNotFound
|
end;
|
||||||
);
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user