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