Partial code generation