Пример #1
0
 public SourceFile(SourcePackage upk, string fullPath, string text = null, int line = 1, int column = 1)
 {
     Package     = upk;
     FullPath    = fullPath;
     IsUnknown   = !fullPath.IsValidPath() || !Path.IsPathRooted(fullPath);
     _text       = text;
     StartLine   = line;
     StartColumn = column;
 }
Пример #2
0
 public bool IsAccessibleFrom(SourcePackage other)
 {
     return(ReferenceEquals(other, this) ||
            other.IsUnknown || IsUnknown ||
            other.References.Contains(this));
 }