@@ -64,6 +64,10 @@ export 'src/warn.dart' show warn;
6464/// If [quietDeps] is `true` , this will silence compiler warnings emitted for
6565/// stylesheets loaded through [importers] , [loadPaths] , or [packageConfig] .
6666///
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+ ///
6771/// If [sourceMap] is passed, it's passed a [SingleMapping] that indicates which
6872/// sections of the source file(s) correspond to which in the resulting CSS.
6973/// It's called immediately before this method returns, and only if compilation
@@ -98,6 +102,7 @@ String compile(String path,
98102 Iterable <Callable >? functions,
99103 OutputStyle ? style,
100104 bool quietDeps = false ,
105+ bool verbose = false ,
101106 void sourceMap (SingleMapping map)? ,
102107 bool charset = true }) {
103108 logger ?? = Logger .stderr (color: color);
@@ -111,6 +116,7 @@ String compile(String path,
111116 functions: functions,
112117 style: style,
113118 quietDeps: quietDeps,
119+ verbose: verbose,
114120 sourceMap: sourceMap != null ,
115121 charset: charset);
116122 result.sourceMap.andThen (sourceMap);
@@ -158,6 +164,10 @@ String compile(String path,
158164/// If [quietDeps] is `true` , this will silence compiler warnings emitted for
159165/// stylesheets loaded through [importers] , [loadPaths] , or [packageConfig] .
160166///
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+ ///
161171/// If [sourceMap] is passed, it's passed a [SingleMapping] that indicates which
162172/// sections of the source file(s) correspond to which in the resulting CSS.
163173/// It's called immediately before this method returns, and only if compilation
@@ -195,6 +205,7 @@ String compileString(String source,
195205 Importer ? importer,
196206 Object ? url,
197207 bool quietDeps = false ,
208+ bool verbose = false ,
198209 void sourceMap (SingleMapping map)? ,
199210 bool charset = true ,
200211 @Deprecated ("Use syntax instead." ) bool indented = false }) {
@@ -212,6 +223,7 @@ String compileString(String source,
212223 importer: importer,
213224 url: url,
214225 quietDeps: quietDeps,
226+ verbose: verbose,
215227 sourceMap: sourceMap != null ,
216228 charset: charset);
217229 result.sourceMap.andThen (sourceMap);
@@ -232,6 +244,7 @@ Future<String> compileAsync(String path,
232244 Iterable <AsyncCallable >? functions,
233245 OutputStyle ? style,
234246 bool quietDeps = false ,
247+ bool verbose = false ,
235248 void sourceMap (SingleMapping map)? }) async {
236249 logger ?? = Logger .stderr (color: color);
237250 var result = await c.compileAsync (path,
@@ -244,6 +257,7 @@ Future<String> compileAsync(String path,
244257 functions: functions,
245258 style: style,
246259 quietDeps: quietDeps,
260+ verbose: verbose,
247261 sourceMap: sourceMap != null );
248262 result.sourceMap.andThen (sourceMap);
249263 return result.css;
@@ -266,6 +280,7 @@ Future<String> compileStringAsync(String source,
266280 AsyncImporter ? importer,
267281 Object ? url,
268282 bool quietDeps = false ,
283+ bool verbose = false ,
269284 void sourceMap (SingleMapping map)? ,
270285 bool charset = true ,
271286 @Deprecated ("Use syntax instead." ) bool indented = false }) async {
@@ -283,6 +298,7 @@ Future<String> compileStringAsync(String source,
283298 importer: importer,
284299 url: url,
285300 quietDeps: quietDeps,
301+ verbose: verbose,
286302 sourceMap: sourceMap != null ,
287303 charset: charset);
288304 result.sourceMap.andThen (sourceMap);
0 commit comments