public SourceWalker(XFile file, string source) { _file = file; _prjNode = _file?.Project?.ProjectNode; _snapshot = null; _source = source; }
public XProject(IXSharpProject project) { _projectNode = project; xSourceFilesDict = new ConcurrentDictionary <string, XFile>(StringComparer.OrdinalIgnoreCase); xOtherFilesDict = new ConcurrentDictionary <string, XFile>(StringComparer.OrdinalIgnoreCase); this._typeController = new SystemTypeController(); this._loaded = true; if (_projectNode == null) { } }
public SourceWalker(XFile file) { _file = file; _prjNode = _file?.Project?.ProjectNode; string fullPath = _file.SourcePath; if (System.IO.File.Exists(fullPath)) { //System.Diagnostics.Trace.WriteLine("Parsing " + System.IO.Path.GetFileName(fullPath)); _source = System.IO.File.ReadAllText(fullPath); } }
protected virtual void Dispose(bool disposing) { if (disposing) { _errors = null; _file = null; _prjNode = null; _tree = null; _tokenStream = null; _snapshot = null; } }
public SourceWalker(XFile file, ITextSnapshot snapshot) { _file = file; _prjNode = _file?.Project?.ProjectNode; Snapshot = snapshot; }