public void Analyze(CancellationToken cancel) { if (cancel.IsCancellationRequested) { return; } lock (this) { if (_analysis == null) { _analysis = new XamlAnalysis(_filename); } _analysis = new XamlAnalysis(new StringReader(_content)); _version++; // update any .py files which depend upon us. for (var deps = GetNewDependencies(null); deps.Any(); deps = GetNewDependencies(deps)) { foreach (var dep in deps) { dep.Analyze(cancel); } } } }
public void Analyze(CancellationToken cancel) { if (cancel.IsCancellationRequested) { return; } lock (this) { _analysis = new XamlAnalysis(new StringReader(_content)); _version++; // update any .py files which depend upon us. for (var deps = GetNewDependencies(null); deps.Any(); deps = GetNewDependencies(deps)) { foreach (var dep in deps) { dep.Analyze(cancel); } } } }
public void Analyze() { lock (this) { if (_analysis == null) { _analysis = new XamlAnalysis(_filename); _cookie = new FileCookie(_filename); } _analysis = new XamlAnalysis(_content); _version++; // update any .py files which depend upon us. foreach (var dep in _dependencies) { dep.Analyze(); } } }