Another instantiation is at line 253 of the same file in function:
public List<Type> generateTypes(final SchemaContext context, final Set<Module> modules)
Change-Id: Ic6dab97de47f54db193f5da7952e97bade656fd9
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit
619878e56edb6f4c835b739cef5c2d6d01154eb4)
checkArgument(context != null, "Schema Context reference cannot be NULL.");
checkState(context.getModules() != null, "Schema Context does not contain defined modules.");
schemaContext = context;
- typeProvider = new TypeProviderImpl(context);
final Set<Module> modules = context.getModules();
return generateTypes(context, modules);
}