Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/19/14 09:09:39 (9 years ago)
Author:
jkarder
Message:

#2136: implemented review comments from mkommend in comment:32:ticket:2136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting/3.3/Script.cs

    r10731 r10857  
    4949    [Storable]
    5050    private string code;
    51     public virtual string Code {
     51    public string Code {
    5252      get { return code; }
    5353      set {
     
    5858    }
    5959
    60     private string compilationUnitCode;
    61     public virtual string CompilationUnitCode {
    62       get { return compilationUnitCode; }
    63     }
    64 
    6560    private CompilerErrorCollection compileErrors;
    66     public virtual CompilerErrorCollection CompileErrors {
     61    public CompilerErrorCollection CompileErrors {
    6762      get { return compileErrors; }
    6863      private set {
     
    7974      : base(original, cloner) {
    8075      code = original.code;
    81       compilationUnitCode = original.compilationUnitCode;
    8276      if (original.compileErrors != null)
    8377        compileErrors = new CompilerErrorCollection(original.compileErrors);
    8478    }
    85     public Script() {
    86       name = ItemName;
    87       description = ItemDescription;
    88       code = CodeTemplate;
     79    public Script()
     80      : base("Script", "An empty script.") {
     81      code = string.Empty;
    8982    }
    9083    public Script(string code)
     
    128121          IndentString = "  ",
    129122        });
    130       compilationUnitCode = writer.ToString();
    131123      return CodeProvider.CompileAssemblyFromDom(parameters, unit);
    132124    }
Note: See TracChangeset for help on using the changeset viewer.