@@ -19,7 +19,7 @@ import { BlockPath, CLASS_NAME_IDENT, ROOT_CLASS } from "../BlockSyntax";
19
19
import { SourceLocation } from "../SourceLocation" ;
20
20
import { CssBlockError , InvalidBlockSyntax } from "../errors" ;
21
21
import { FileIdentifier } from "../importing" ;
22
- import { ReadonlyOptions } from "../options" ;
22
+ import { ResolvedConfiguration } from "../options" ;
23
23
24
24
import { BlockClass } from "./BlockClass" ;
25
25
import { Inheritable } from "./Inheritable" ;
@@ -367,7 +367,7 @@ export class Block
367
367
return null ;
368
368
}
369
369
370
- rewriteSelectorNodes ( nodes : selectorParser . Node [ ] , opts : ReadonlyOptions ) : selectorParser . Node [ ] {
370
+ rewriteSelectorNodes ( nodes : selectorParser . Node [ ] , opts : ResolvedConfiguration ) : selectorParser . Node [ ] {
371
371
let newNodes : selectorParser . Node [ ] = [ ] ;
372
372
for ( let i = 0 ; i < nodes . length ; i ++ ) {
373
373
let node = nodes [ i ] ;
@@ -382,7 +382,7 @@ export class Block
382
382
return newNodes ;
383
383
}
384
384
385
- rewriteSelectorToString ( selector : ParsedSelector , opts : ReadonlyOptions ) : string {
385
+ rewriteSelectorToString ( selector : ParsedSelector , opts : ResolvedConfiguration ) : string {
386
386
let firstNewSelector = new CompoundSelector ( ) ;
387
387
let newSelector = firstNewSelector ;
388
388
let newCurrentSelector = newSelector ;
@@ -402,14 +402,14 @@ export class Block
402
402
return firstNewSelector . toString ( ) ;
403
403
}
404
404
405
- rewriteSelector ( selector : ParsedSelector , opts : ReadonlyOptions ) : ParsedSelector {
405
+ rewriteSelector ( selector : ParsedSelector , opts : ResolvedConfiguration ) : ParsedSelector {
406
406
// generating a string and re-parsing ensures the internal structure is consistent
407
407
// otherwise the parent/next/prev relationships will be wonky with the new nodes.
408
408
let s = this . rewriteSelectorToString ( selector , opts ) ;
409
409
return parseSelector ( s ) [ 0 ] ;
410
410
}
411
411
412
- debug ( opts : ReadonlyOptions ) : string [ ] {
412
+ debug ( opts : ResolvedConfiguration ) : string [ ] {
413
413
let result : string [ ] = [ `Source: ${ this . identifier } ` , this . rootClass . asDebug ( opts ) ] ;
414
414
let sourceNames = new Set < string > ( this . all ( ) . map ( s => s . asSource ( ) ) ) ;
415
415
let sortedNames = [ ...sourceNames ] . sort ( ) ;
0 commit comments