import { postcss } from "opticss" ; import { BLOCK_DEBUG , parseBlockDebug } from "../../BlockSyntax" ; import { Block } from "../../BlockTree" ; import { ResolvedConfiguration } from "../../configuration" ; param sourceFile param root param block export function processDebugStatements ( root , block , file , config ) { root . walkAtRules ( BLOCK_DEBUG , ( atRule ) => { let { block : ref , channel } = parseBlockDebug ( config , root , atRule , file , block ) ; let debugStr = ref . debug ( config ) ; if ( channel !== "comment" ) { if ( channel === "stderr" ) { console . warn ( debugStr . join ( "\n" ) ) ; } else { console . log ( debugStr . join ( "\n" ) ) ; } } } ) ; }