Update outdated docs for ImportCache.importCanonical(). (#982)

This commit is contained in:
Natalie Weizenbaum 2020-05-13 12:47:52 -07:00 committed by GitHub
parent 39358fbb7b
commit 93dcf994d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -171,8 +171,8 @@ Relative canonical URLs are deprecated and will eventually be disallowed.
/// Otherwise returns `null`.
///
/// If passed, the [originalUrl] represents the URL that was canonicalized
/// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which
/// is in turn used in error reporting.
/// into [canonicalUrl]. It's used to resolve a relative canonical URL, which
/// importers may return for legacy reasons.
///
/// Caches the result of the import and uses cached results if possible.
Future<Stylesheet> importCanonical(AsyncImporter importer, Uri canonicalUrl,

View File

@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_import_cache.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: c39f68f9964e4ae03c6447d845349e276def5031
// Checksum: 8f54034c56e0d38fc8c90ad4d5f017628cab6190
//
// ignore_for_file: unused_import
@ -171,8 +171,8 @@ Relative canonical URLs are deprecated and will eventually be disallowed.
/// Otherwise returns `null`.
///
/// If passed, the [originalUrl] represents the URL that was canonicalized
/// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which
/// is in turn used in error reporting.
/// into [canonicalUrl]. It's used to resolve a relative canonical URL, which
/// importers may return for legacy reasons.
///
/// Caches the result of the import and uses cached results if possible.
Stylesheet importCanonical(Importer importer, Uri canonicalUrl,

View File

@ -80,8 +80,8 @@ class StylesheetGraph {
/// stylesheets it imports to this graph and returns its node.
///
/// If passed, the [originalUrl] represents the URL that was canonicalized
/// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which
/// is in turn used in error reporting.
/// into [canonicalUrl]. It's used to resolve a relative canonical URL, which
/// importers may return for legacy reasons.
///
/// Returns the set of nodes that need to be recompiled because their imports
/// changed as a result of this stylesheet being added. This does not include