Exemple #1
0
    void ConstructCompilations()
    {
        this.compilation  = null;
        this.compilations = new CompilationList();
        while (this.inputLine != null && this.inputLine.StartsWith("compilation "))
        {
            this.ConstructCompilation();
        }
        if (this.compilation == null)
        {
            throw new MalformedSuiteException("Line " + this.lineCounter + ": Expected a line of the form 'compilation name'");
        }
        Compilation previous = null;

        for (int i = this.compilations.Count - 1; i >= 0; i--)
        {
            Compilation comp = this.compilations[i];
            if (previous != null)
            {
                comp.ReferencedCompilations = new CompilationList(previous);
                comp.CompilerParameters.ReferencedAssemblies.Add(previous.CompilerParameters.OutputAssembly + ".dll");
            }
            this.compiler.ConstructSymbolTable(comp, this.errors);
            previous = comp;
        }
    }
Exemple #2
0
 void ConstructCompilations(){
   this.compilation = null;
   this.compilations = new CompilationList();
   while (this.inputLine != null && this.inputLine.StartsWith("compilation ")){
     this.ConstructCompilation();
   }
   if (this.compilation == null)
     throw new MalformedSuiteException("Line "+this.lineCounter+": Expected a line of the form 'compilation name'");
   Compilation previous = null;
   for (int i = this.compilations.Count-1; i >= 0; i--){
     Compilation comp = this.compilations[i];
     if (previous != null){
       comp.ReferencedCompilations = new CompilationList(previous);
       comp.CompilerParameters.ReferencedAssemblies.Add(previous.CompilerParameters.OutputAssembly+".dll");
     }
     this.compiler.ConstructSymbolTable(comp, this.errors);
     previous = comp;
   }
 }