示例#1
0
        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);
                    }
                }
            }
        }
示例#2
0
        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);
                    }
                }
            }
        }
示例#3
0
        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();
                }
            }
        }