use of org.eclipse.xtext.formatting2.regionaccess.TextRegionAccessBuilder in project xtext-core by eclipse.
the class Serializer method serializeToRegions.
public ITextRegionAccess serializeToRegions(EObject obj) {
checkNotNull(obj, "obj must not be null.");
ISerializationContext context = getIContext(obj);
TextRegionAccessBuilder builder = textRegionBuilderProvider.get();
ISerializationDiagnostic.Acceptor errors = ISerializationDiagnostic.EXCEPTION_THROWING_ACCEPTOR;
serialize(context, obj, builder.forSequence(context, obj), errors);
ITextRegionAccess regionAccess = builder.create();
return regionAccess;
}
Aggregations