private static boolean shouldCheckBuffer ( PrintNode node ) { if ( ! ( node . getExpr ( ) . getRoot ( ) instanceof FunctionNode ) ) { return true ; } FunctionNode fn = ( FunctionNode ) node . getExpr ( ) . getRoot ( ) ; if ( ! ( fn . getSoyFunction ( ) instanceof BuiltinFunction ) ) { return true ; } BuiltinFunction bfn = ( BuiltinFunction ) fn . getSoyFunction ( ) ; if ( bfn != BuiltinFunction . XID && bfn != BuiltinFunction . CSS ) { return true ; } return false ; }
Returns true if the print expression should check the rendering buffer and generate a detach .