Show
Ignore:
Timestamp:
11/03/09 21:46:01 (3 weeks ago)
Author:
sukyoungryu
Message:

[self type] Introduced SelfType? and its immediate subclasses, TraitSelfType? and ObjectExprType?.

Files:
1 modified

Legend:

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

    r4296 r4311  
    176176                 * it is initialized by compiler.disambiguator.SelfParamDisambiguator. 
    177177                 */ 
    178                 abstract TraitObjectDecl(TraitTypeHeader header, Option<Type> selfType) implements Generic; 
     178                abstract TraitObjectDecl(TraitTypeHeader header, Option<SelfType> selfType) implements Generic; 
    179179                    /** 
    180180                     * trait declaration in components or APIs 
     
    562562                     *        end 
    563563                     */ 
    564                     ObjectExpr(Option<Type> selfType); 
     564                    ObjectExpr(Option<SelfType> selfType); 
    565565                    /** 
    566566                     * object expression rewritten by interpreter.rewrite.Disambiguate 
     
    10331033                    UnknownType(); 
    10341034                    /** 
     1035                     * the type of "self" in a trait or object 
     1036                     * internal node 
     1037                     */ 
     1038                    abstract SelfType(); 
     1039                        /** 
     1040                         * the type of "self" in a trait or object declaration 
     1041                         * internal node 
     1042                         */ 
     1043                        TraitSelfType(BaseType named, List<NamedType> comprised); 
     1044                        /** 
     1045                         * the type of "self" in an object expression 
     1046                         * internal node 
     1047                         */ 
     1048                        ObjectExprType(List<BaseType> extended); 
     1049                    /** 
    10351050                     * named type 
    10361051                     */