use of org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory in project xtext-xtend by eclipse.
the class CompilationUnitImpl method before.
public void before(final ActiveAnnotationContexts.AnnotationCallback phase) {
this.lastPhase = phase;
final StandardTypeReferenceOwner standardTypeReferenceOwner = new StandardTypeReferenceOwner(this.services, this.xtendFile);
boolean _equals = Objects.equal(ActiveAnnotationContexts.AnnotationCallback.INDEXING, phase);
if (_equals) {
IndexingLightweightTypeReferenceFactory _indexingLightweightTypeReferenceFactory = new IndexingLightweightTypeReferenceFactory(standardTypeReferenceOwner);
this.typeRefFactory = _indexingLightweightTypeReferenceFactory;
} else {
LightweightTypeReferenceFactory _lightweightTypeReferenceFactory = new LightweightTypeReferenceFactory(standardTypeReferenceOwner);
this.typeRefFactory = _lightweightTypeReferenceFactory;
}
boolean _equals_1 = Objects.equal(ActiveAnnotationContexts.AnnotationCallback.VALIDATION, phase);
if (_equals_1) {
this.problemSupport.validationPhaseStarted();
}
}
use of org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory in project xtext-xtend by eclipse.
the class CompilationUnitImpl method setXtendFile.
public void setXtendFile(final XtendFile xtendFile) {
this.xtendFile = xtendFile;
StandardTypeReferenceOwner _standardTypeReferenceOwner = new StandardTypeReferenceOwner(this.services, xtendFile);
LightweightTypeReferenceFactory _lightweightTypeReferenceFactory = new LightweightTypeReferenceFactory(_standardTypeReferenceOwner);
this.typeRefFactory = _lightweightTypeReferenceFactory;
this.fileSystemSupport.setContext(xtendFile.eResource().getResourceSet());
this.fileLocations.setContext(xtendFile.eResource());
}
Aggregations