Skip to content

Commit

Permalink
XtendCompilerHelper -> AnonymousClassCompilerHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 3, 2024
1 parent bc766b0 commit f8d46fd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* @author Lorenzo Bettini - Initial contribution and API
*/
public class XtendCompilerHelper {
public class AnonymousClassCompilerHelper {

@Inject
private IResourceScopeCache cache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class XtendCompiler extends XbaseCompiler {
private IGeneratorConfigProvider generatorConfigProvider;

@Inject
private XtendCompilerHelper compilerHelper;
private AnonymousClassCompilerHelper compilerHelper;

@Override
protected String getFavoriteVariableName(EObject ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class XtendGenerator extends JvmModelGenerator implements IGenerator2 {
@Inject OperationCanceledManager operationCanceledManager

@Inject ElementIssueProvider.Factory issueProviderFactory
@Inject XtendCompilerHelper compilerHelper
@Inject AnonymousClassCompilerHelper compilerHelper

override doGenerate(Resource input, IFileSystemAccess fsa) {
super.doGenerate(input, fsa)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.Set;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtend.core.compiler.XtendCompilerHelper;
import org.eclipse.xtend.core.compiler.AnonymousClassCompilerHelper;
import org.eclipse.xtext.generator.trace.ILocationData;
import org.eclipse.xtext.generator.trace.ITraceURIConverter;
import org.eclipse.xtext.resource.ILocationInFileProvider;
Expand All @@ -33,16 +33,16 @@
*/
public class AnonymousClassAwareTreeAppendable extends TreeAppendable {

private XtendCompilerHelper compilerHelper;
private AnonymousClassCompilerHelper compilerHelper;

public AnonymousClassAwareTreeAppendable(XtendCompilerHelper compilerHelper, ImportManager importManager, ITraceURIConverter converter,
public AnonymousClassAwareTreeAppendable(AnonymousClassCompilerHelper compilerHelper, ImportManager importManager, ITraceURIConverter converter,
ILocationInFileProvider locationProvider, IJvmModelAssociations jvmModelAssociations, EObject source, String indentation,
String lineSeparator) {
super(importManager, converter, locationProvider, jvmModelAssociations, source, indentation, lineSeparator);
this.compilerHelper = compilerHelper;
}

protected AnonymousClassAwareTreeAppendable(XtendCompilerHelper compilerHelper, SharedAppendableState state, ITraceURIConverter converter,
protected AnonymousClassAwareTreeAppendable(AnonymousClassCompilerHelper compilerHelper, SharedAppendableState state, ITraceURIConverter converter,
ILocationInFileProvider locationProvider, IJvmModelAssociations jvmModelAssociations, Set<ILocationData> sourceLocations,
boolean useForDebugging) {
super(state, converter, locationProvider, jvmModelAssociations, sourceLocations, useForDebugging);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static class StopCollecting extends Exception {
private ElementIssueProvider.Factory issueProviderFactory;

@Inject
private XtendCompilerHelper compilerHelper;
private AnonymousClassCompilerHelper compilerHelper;

@Override
public void doGenerate(final Resource input, final IFileSystemAccess fsa) {
Expand Down

0 comments on commit f8d46fd

Please sign in to comment.