Пример #1
0
 public SourceWalker(XFile file, string source)
 {
     _file     = file;
     _prjNode  = _file?.Project?.ProjectNode;
     _snapshot = null;
     _source   = source;
 }
Пример #2
0
 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)
     {
     }
 }
Пример #3
0
        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);
            }
        }
Пример #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _errors      = null;
         _file        = null;
         _prjNode     = null;
         _tree        = null;
         _tokenStream = null;
         _snapshot    = null;
     }
 }
Пример #5
0
 public SourceWalker(XFile file, ITextSnapshot snapshot)
 {
     _file    = file;
     _prjNode = _file?.Project?.ProjectNode;
     Snapshot = snapshot;
 }