polymer-analyzer
Version:
Static analysis for Web Components
33 lines (32 loc) • 1.35 kB
TypeScript
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
import { FileRelativeUrl, PackageRelativeUrl, ResolvedUrl, ScannedImport } from '../model/model';
import { UrlResolver } from './url-resolver';
/**
* Resolves a URL using multiple resolvers.
*/
export declare class MultiUrlResolver extends UrlResolver {
private _resolvers;
constructor(_resolvers: ReadonlyArray<UrlResolver>);
/**
* Returns the first resolved URL (which is not undefined.)
*/
resolve(firstUrl: ResolvedUrl | PackageRelativeUrl, secondUrl?: FileRelativeUrl, import_?: ScannedImport): ResolvedUrl | undefined;
/**
* Delegates to relative method on the first resolver which can resolve the
* destination URL.
*/
relative(to: ResolvedUrl): PackageRelativeUrl;
relative(from: ResolvedUrl, to: ResolvedUrl, kind?: string): FileRelativeUrl;
}