private AstModelDefinition<AstSummarize> getSummarized(AstScript script, String name) { for (AstModelDefinition<?> def : script.models) { if (def.name.identifier.equals(name)) { return def.asSummarized(); } } throw new AssertionError(name); }
private AstModelDefinition<AstRecord> getProjection(AstScript script, String name) { for (AstModelDefinition<?> def : script.models) { if (def.name.identifier.equals(name)) { return def.asProjective(); } } throw new AssertionError(name); }