예제 #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;
        }
    }
예제 #2
0
파일: main.cs 프로젝트: hesam/SketchSharp
 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;
   }
 }