Show
Ignore:
Timestamp:
07/28/08 19:59:00 (16 months ago)
Author:
mspiegel
Message:

[static analysis] Another refactoring of Shell.java. Static phases are now declared in package com.sun.fortress.compiler.phases.

Files:
1 modified

Legend:

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

    r2399 r2404  
    4444     
    4545    public AnalyzeResult(Iterable<? extends StaticError> errors) { 
    46         this(new HashMap<APIName, ApiIndex>(), new HashMap<APIName, ComponentIndex>(), errors); 
    47     } 
    48  
    49     public AnalyzeResult(Map<APIName, ApiIndex> apis, 
    50                          Map<APIName, ComponentIndex> components, 
    51                          Iterable<? extends StaticError> errors) { 
    52         super(errors); 
    53         _apis = apis; 
    54         _components = components; 
    55         _typeEnvAtNode = Option.none(); 
     46        this(new HashMap<APIName, ApiIndex>(), new HashMap<APIName, ComponentIndex>(),  
     47                        errors, Option.<Map<Pair<Node,Span>, TypeEnv>>none()); 
    5648    } 
    5749     
    5850    public AnalyzeResult(Map<APIName, ApiIndex> apis, 
    5951            Map<APIName, ComponentIndex> components, 
    60             Iterable<? extends StaticError> errors, Map<Pair<Node,Span>, TypeEnv> typeEnvAtNode) { 
     52            Iterable<? extends StaticError> errors, Option<Map<Pair<Node,Span>, TypeEnv>> typeEnvAtNode) { 
    6153        super(errors); 
    6254        _apis = apis; 
    6355        _components = components; 
    64         _typeEnvAtNode = Option.some(typeEnvAtNode); 
     56        _typeEnvAtNode = typeEnvAtNode; 
    6557    } 
    6658