Show
Ignore:
Timestamp:
08/17/09 10:25:28 (3 months ago)
Author:
jrhil47
Message:

[ast] Added a MethodInfo? object to ArrowType? so that we can keep track of the declared self parameter in the types.\n[type checker] Fixed bug in checking local variable declarations.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/astgen/Fortress.ast

    r4083 r4086  
    10861086                 * type of a generic function, used during static checking 
    10871087                 */ 
    1088                 ArrowType(Type domain, Type range, Effect effect, boolean io); 
     1088                ArrowType(Type domain, 
     1089                          Type range, 
     1090                          Effect effect, 
     1091                          boolean io, 
     1092                          Option<MethodInfo> methodInfo = Option.<MethodInfo>none()); 
    10891093                /** 
    10901094                 * inferred type 
     
    19061910                        TypeInfo(List<StaticParam> staticParams, 
    19071911                                 Option<WhereClause> whereClause); 
     1912                /* 
     1913                 * Contains info about the self parameter in an arrow type for 
     1914                 * a method. 
     1915                 */ 
     1916                MethodInfo(Type selfType, int selfPosition); 
    19081917            /* 
    19091918             * Keeps track of ellipses properties. This is special cased