Show
Ignore:
Timestamp:
07/02/09 07:59:33 (5 months ago)
Author:
jrhil47
Message:

[index] Changed all Functional indices to store a thunk to get the return types, since during type checking the return types might need to be lazily evaluated. Also changed Functional indices to yield an Option for return types.
[type checker] Started implementing extraction of bindings from nodes for type environments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/compiler/index/Constructor.java

    r3764 r3915  
    3939import edu.rice.cs.plt.iter.IterUtil; 
    4040import edu.rice.cs.plt.lambda.Lambda; 
     41import edu.rice.cs.plt.lambda.Thunk; 
    4142import edu.rice.cs.plt.tuple.Option; 
    4243 
     
    6061        _throwsClause = throwsClause; 
    6162        _where = where; 
     63        putThunk(new Thunk<Option<Type>>() { 
     64          @Override public Option<Type> value() { 
     65            return NI.nyi(); 
     66          } 
     67        }); 
    6268    } 
    6369 
     
    117123 
    118124        @Override 
    119         public Type getReturnType() { 
    120                 // TODO Auto-generated method stub 
    121                 return NI.nyi(); 
    122         } 
    123  
    124         @Override 
    125125        public Functional acceptNodeUpdateVisitor(final NodeUpdateVisitor v) { 
    126126