codetools: var and type sections for classes

git-svn-id: trunk@23415 -
This commit is contained in:
mattias 2010-01-09 23:04:13 +00:00
parent 3e0e6a5370
commit 4a0a000909

View File

@ -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;