mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 04:44:22 +02:00
Corrected the handling of hint directives.
pgenutils.pas/generate_specialization: - parse hint directives of the generic if they are recorded - output hint messages of the generic after the ">" is successfully parsed pexpr.pas: - factor: don't display hints of a potential generic type if the next token is a "<" - sub_expr: * added two inline methods which a) checks whether a node is a typenode or a loadvmtaddrnode with a typenode b) returns the typedef of such a node * check hint directives for the first parsed type argument of a specialization * in the case of parsing a non-generic type the hints of the left and right node of the resulting "<" node need to be checked (the right ones only if another "<" is following) git-svn-id: branches/svenbarth/generics@19427 -
This commit is contained in:
parent
988c799b0e
commit
5352f1dda4
@ -2018,15 +2018,8 @@ implementation
|
||||
exit;
|
||||
end;
|
||||
|
||||
<<<<<<< HEAD
|
||||
{ check hints, but only if it isn't a potential generic symbol;
|
||||
that is checked in sub_expr if it isn't a generic }
|
||||
=======
|
||||
{ check hints if it is the final symbol that is used (e.g. in
|
||||
case of generics only the dummy symbol or the non-generic one
|
||||
is found here }
|
||||
{ TODO : correct this check }
|
||||
>>>>>>> Added two reminders for me
|
||||
if assigned(srsym) and
|
||||
not (
|
||||
(srsym.typ=typesym) and
|
||||
|
Loading…
Reference in New Issue
Block a user