// RunAsyncFramentIndex will later be replaced by the fragment the async is in.
// TODO(rluble): this approach is not very clean, ideally the load sequence should be
// installed AFTER code splitting when the fragment ids are known; rather than inserting
// a placeholder in the AST and patching the ast later.
for (JRunAsync runAsync : initialLoadSequence) {
initializers.add(new JNumericEntry(call.getSourceInfo(), "RunAsyncFragmentIndex",
runAsync.getRunAsyncId()));
}
JNewArray newArray =
JNewArray.createInitializers(arg1.getSourceInfo(), arrayType,
Lists.newArrayList(initializers));