Changeset 10857 for trunk/sources/HeuristicLab.Scripting/3.3/Script.cs
- Timestamp:
- 05/19/14 09:09:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Scripting/3.3/Script.cs
r10731 r10857 49 49 [Storable] 50 50 private string code; 51 public virtualstring Code {51 public string Code { 52 52 get { return code; } 53 53 set { … … 58 58 } 59 59 60 private string compilationUnitCode;61 public virtual string CompilationUnitCode {62 get { return compilationUnitCode; }63 }64 65 60 private CompilerErrorCollection compileErrors; 66 public virtualCompilerErrorCollection CompileErrors {61 public CompilerErrorCollection CompileErrors { 67 62 get { return compileErrors; } 68 63 private set { … … 79 74 : base(original, cloner) { 80 75 code = original.code; 81 compilationUnitCode = original.compilationUnitCode;82 76 if (original.compileErrors != null) 83 77 compileErrors = new CompilerErrorCollection(original.compileErrors); 84 78 } 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; 89 82 } 90 83 public Script(string code) … … 128 121 IndentString = " ", 129 122 }); 130 compilationUnitCode = writer.ToString();131 123 return CodeProvider.CompileAssemblyFromDom(parameters, unit); 132 124 }
Note: See TracChangeset
for help on using the changeset viewer.