Show
Ignore:
Timestamp:
08/18/09 08:14:20 (3 months ago)
Author:
jrhil47
Message:

[Typechecker] Added functionality that will allow us to combine inference and coercions for functional methods \n [Indices] Filled in the self type for functional methods \n [AST] Populated the MethodInfo? in an arrow type

Files:
1 modified

Legend:

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

    r4086 r4094  
    173173                 * Name must be unqualified. 
    174174                 */ 
    175                 abstract TraitObjectDecl(TraitTypeHeader header) implements Generic; 
     175                abstract TraitObjectDecl(TraitTypeHeader header, Option<Type> selfType) implements Generic; 
    176176                    /** 
    177177                     * trait declaration in components or APIs 
     
    219219                    TraitDecl(List<BaseType> excludesClause, 
    220220                              Option<List<BaseType>> comprisesClause, 
    221                               boolean comprisesEllipses, Option<Type> selfType); 
     221                              boolean comprisesEllipses); 
    222222                    /** 
    223223                     * object declaration in components or APIs 
     
    259259                     *       end 
    260260                     */ 
    261                     ObjectDecl(Option<List<Param>> params, Option<Type> selfType) 
     261                    ObjectDecl(Option<List<Param>> params) 
    262262                              implements ObjectConstructor; 
    263263                /** 
     
    19121912                /* 
    19131913                 * Contains info about the self parameter in an arrow type for 
    1914                  * a method. 
     1914                 * a method. `selfPosition` is -1 for dotted methods, and a 
     1915                 * 0-based index into the params for functional methods. 
    19151916                 */ 
    19161917                MethodInfo(Type selfType, int selfPosition);