Exemple #1
0
 public ScriptFile(Diagnostics diagnostics, Document document)
 {
     Document    = document;
     Diagnostics = diagnostics.FromUri(Uri);
     Diagnostics.AddDiagnostics(document.GetDiagnostics());
     Document.Cache.EndCycle();
 }
Exemple #2
0
 public ScriptFile(Diagnostics diagnostics, Uri uri, ScriptParseInfo scriptParseInfo)
 {
     Uri         = uri;
     Diagnostics = diagnostics.FromUri(Uri);
     Diagnostics.AddDiagnostics(scriptParseInfo.StructuralDiagnostics.ToArray());
     ScriptParseInfo = scriptParseInfo;
     Context         = ScriptParseInfo.Context;
     Tokens          = scriptParseInfo.Tokens;
 }