List<PrologueEntry> resolveTopLevel(CompilerState state) {
List<PrologueEntry> resolved = new ArrayList<PrologueEntry>();
for (IntermediatePrologueEntry entry : prologueEntries) {
SchemaPattern pattern = new SchemaPattern();
IntermediateSchemaFragment fragment = entry.fragment();
resolved.add(new PrologueEntry(entry.elementType(), pattern));
state.deferredCompiles.add(new DeferredCompile(fragment, pattern));
}
return resolved;
}