Search in sources :

Example 1 with IndexingLightweightTypeReferenceFactory

use of org.eclipse.xtext.xbase.typesystem.references.IndexingLightweightTypeReferenceFactory 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();
    }
}
Also used : IndexingLightweightTypeReferenceFactory(org.eclipse.xtext.xbase.typesystem.references.IndexingLightweightTypeReferenceFactory) IndexingLightweightTypeReferenceFactory(org.eclipse.xtext.xbase.typesystem.references.IndexingLightweightTypeReferenceFactory) LightweightTypeReferenceFactory(org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory) StandardTypeReferenceOwner(org.eclipse.xtext.xbase.typesystem.references.StandardTypeReferenceOwner)

Aggregations

IndexingLightweightTypeReferenceFactory (org.eclipse.xtext.xbase.typesystem.references.IndexingLightweightTypeReferenceFactory)1 LightweightTypeReferenceFactory (org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory)1 StandardTypeReferenceOwner (org.eclipse.xtext.xbase.typesystem.references.StandardTypeReferenceOwner)1