Search in sources :

Example 1 with LightweightTypeReferenceFactory

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();
    }
}
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)

Example 2 with LightweightTypeReferenceFactory

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