public final Expression withInitialStatements ( Iterable < ? extends Statement > initialStatements ) { // If there are no new initial statements, return the current chunk. if ( Iterables . isEmpty ( initialStatements ) ) { return this ; } // Otherwise, return a code chunk that includes all of the dependent code. return Composite . create ( ImmutableList . copyOf ( initialStatements ) , this ) ; }
Returns a chunk whose output expression is the same as this chunk s but which includes the given initial statements .