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; }
public bool IsAccessibleFrom(SourcePackage other) { return(ReferenceEquals(other, this) || other.IsUnknown || IsUnknown || other.References.Contains(this)); }