mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 12:41:05 +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
|
||||
SaveRaiseException(ctsEndForClassNotFound);
|
||||
'T':
|
||||
if CompareSrcIdentifiers(p,'TYPE')
|
||||
and (not CurNode.HasParentOfType(ctnGenericType)) then
|
||||
SaveRaiseException(
|
||||
ctsTypeIsOnlyAllowedInGenericsEndOfClassNotFound);
|
||||
if CompareSrcIdentifiers(p,'THREADVAR') then
|
||||
SaveRaiseException(ctsEndForClassNotFound)
|
||||
else if CompareSrcIdentifiers(p,'TYPE')
|
||||
and (BracketLvl>0) then
|
||||
SaveRaiseException(ctsEndForClassNotFound);
|
||||
'V':
|
||||
if CompareSrcIdentifiers(p,'VAR')
|
||||
and (BracketLvl=0)
|
||||
and (not CurNode.HasParentOfType(ctnGenericType)) then
|
||||
SaveRaiseException(ctsVarIsOnlyAllowedInGenericsEndOfClassNotFound
|
||||
);
|
||||
and (BracketLvl>1) then begin
|
||||
SaveRaiseException(ctsEndForClassNotFound);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user