Show
Ignore:
Timestamp:
06/10/09 19:56:03 (6 months ago)
Author:
sukyoungryu
Message:

[type checker] Fixed small things in the Scala type checker. Matched some error messages from the Java type checker and the Scala type checker. Do not type check programs with syntax errors. Moved two tests from not_working_static_tests to compiler_tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/exceptions/FortressException.java

    r3586 r3835  
    2323import java.util.ArrayList; 
    2424 
     25import edu.rice.cs.plt.tuple.Option; 
    2526import com.sun.fortress.interpreter.evaluator.Environment; 
    2627import com.sun.fortress.nodes_util.ErrorMsgMaker; 
     
    111112    public FortressException(Iterable<? extends StaticError> errors) { 
    112113        this.staticErrors = errors; 
     114    } 
     115 
     116    public Option<HasAt> getLoc() { 
     117        if ( this.where.isEmpty() ) 
     118            return Option.none(); 
     119        else return Option.wrap(this.where.get(0)); 
     120    } 
     121 
     122    public String getOriginalMessage() { 
     123        return super.getMessage(); 
    113124    } 
    114125