Browse Source

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 -
svenbarth 14 years ago
parent
commit
5352f1dda4
1 changed files with 0 additions and 7 deletions
  1. 0 7
      compiler/pexpr.pas

+ 0 - 7
compiler/pexpr.pas

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