Split Chunk and Scope for compiler