@@ -61,6 +61,13 @@ export 'src/warn.dart' show warn;
6161///
6262/// The [style] parameter controls the style of the resulting CSS.
6363///
64+ /// If [quietDeps] is `true` , this will silence compiler warnings emitted for
65+ /// stylesheets loaded through [importers] , [loadPaths] , or [packageConfig] .
66+ ///
67+ /// By default, once a deprecation warning for a given feature is printed five
68+ /// times, further warnings for that feature are silenced. If [verbose] is true,
69+ /// all deprecation warnings are printed instead.
70+ ///
6471/// If [sourceMap] is passed, it's passed a [SingleMapping] that indicates which
6572/// sections of the source file(s) correspond to which in the resulting CSS.
6673/// It's called immediately before this method returns, and only if compilation
@@ -94,6 +101,8 @@ String compile(String path,
94101 PackageConfig ? packageConfig,
95102 Iterable <Callable >? functions,
96103 OutputStyle ? style,
104+ bool quietDeps = false ,
105+ bool verbose = false ,
97106 void sourceMap (SingleMapping map)? ,
98107 bool charset = true }) {
99108 logger ?? = Logger .stderr (color: color);
@@ -106,6 +115,8 @@ String compile(String path,
106115 packageConfig: packageConfig),
107116 functions: functions,
108117 style: style,
118+ quietDeps: quietDeps,
119+ verbose: verbose,
109120 sourceMap: sourceMap != null ,
110121 charset: charset);
111122 result.sourceMap.andThen (sourceMap);
@@ -150,6 +161,13 @@ String compile(String path,
150161/// [String] or a [Uri] . If [importer] is passed, [url] must be passed as well
151162/// and `importer.load(url)` should return `source` .
152163///
164+ /// If [quietDeps] is `true` , this will silence compiler warnings emitted for
165+ /// stylesheets loaded through [importers] , [loadPaths] , or [packageConfig] .
166+ ///
167+ /// By default, once a deprecation warning for a given feature is printed five
168+ /// times, further warnings for that feature are silenced. If [verbose] is true,
169+ /// all deprecation warnings are printed instead.
170+ ///
153171/// If [sourceMap] is passed, it's passed a [SingleMapping] that indicates which
154172/// sections of the source file(s) correspond to which in the resulting CSS.
155173/// It's called immediately before this method returns, and only if compilation
@@ -186,6 +204,8 @@ String compileString(String source,
186204 OutputStyle ? style,
187205 Importer ? importer,
188206 Object ? url,
207+ bool quietDeps = false ,
208+ bool verbose = false ,
189209 void sourceMap (SingleMapping map)? ,
190210 bool charset = true ,
191211 @Deprecated ("Use syntax instead." ) bool indented = false }) {
@@ -202,6 +222,8 @@ String compileString(String source,
202222 style: style,
203223 importer: importer,
204224 url: url,
225+ quietDeps: quietDeps,
226+ verbose: verbose,
205227 sourceMap: sourceMap != null ,
206228 charset: charset);
207229 result.sourceMap.andThen (sourceMap);
@@ -221,6 +243,8 @@ Future<String> compileAsync(String path,
221243 Iterable <String >? loadPaths,
222244 Iterable <AsyncCallable >? functions,
223245 OutputStyle ? style,
246+ bool quietDeps = false ,
247+ bool verbose = false ,
224248 void sourceMap (SingleMapping map)? }) async {
225249 logger ?? = Logger .stderr (color: color);
226250 var result = await c.compileAsync (path,
@@ -232,6 +256,8 @@ Future<String> compileAsync(String path,
232256 packageConfig: packageConfig),
233257 functions: functions,
234258 style: style,
259+ quietDeps: quietDeps,
260+ verbose: verbose,
235261 sourceMap: sourceMap != null );
236262 result.sourceMap.andThen (sourceMap);
237263 return result.css;
@@ -253,6 +279,8 @@ Future<String> compileStringAsync(String source,
253279 OutputStyle ? style,
254280 AsyncImporter ? importer,
255281 Object ? url,
282+ bool quietDeps = false ,
283+ bool verbose = false ,
256284 void sourceMap (SingleMapping map)? ,
257285 bool charset = true ,
258286 @Deprecated ("Use syntax instead." ) bool indented = false }) async {
@@ -269,6 +297,8 @@ Future<String> compileStringAsync(String source,
269297 style: style,
270298 importer: importer,
271299 url: url,
300+ quietDeps: quietDeps,
301+ verbose: verbose,
272302 sourceMap: sourceMap != null ,
273303 charset: charset);
274304 result.sourceMap.andThen (sourceMap);
0 commit comments