예제 #1
0
파일: SourceFile.cs 프로젝트: mortend/uno
 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));
 }