void AddBundleReference(string appRelativeFilename, int lineNumber) { var type = parentBundle.ContainsPath(appRelativeFilename) ? AssetReferenceType.SameBundle : AssetReferenceType.DifferentBundle; references.Add(new AssetReference(appRelativeFilename, this, lineNumber, type)); }
void RequireBundleContainsReference(int lineNumber, string path) { if (parentBundle.ContainsPath(path)) { return; } throw new AssetReferenceException( string.Format( "Reference error in \"{0}\", line {1}. Cannot find \"{2}\".", SourceFile.FullPath, lineNumber, path ) ); }