- Timestamp:
- 07/02/09 07:59:33 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/src/com/sun/fortress/compiler/index/DeclaredFunction.java
r3764 r3915 37 37 import com.sun.fortress.useful.NI; 38 38 39 import edu.rice.cs.plt.lambda.SimpleBox; 39 40 import edu.rice.cs.plt.tuple.Option; 40 41 … … 42 43 private final FnDecl _ast; 43 44 44 public DeclaredFunction(FnDecl ast) { _ast = ast; } 45 public DeclaredFunction(FnDecl ast) { 46 _ast = ast; 47 putThunk(SimpleBox.make(NodeUtil.getReturnType(_ast))); 48 } 45 49 46 50 public FnDecl ast() { return _ast; } … … 98 102 99 103 @Override 100 public Type getReturnType() {101 return NodeUtil.getReturnType(_ast).unwrap();102 }103 104 @Override105 104 public Functional acceptNodeUpdateVisitor(NodeUpdateVisitor visitor) { 106 105 return new DeclaredFunction((FnDecl)this._ast.accept(visitor));

