Search in sources :

Example 1 with JvmElementImpl

use of org.eclipse.xtend.core.macro.declaration.JvmElementImpl in project xtext-xtend by eclipse.

the class TracabilityImpl method isGenerated.

@Override
public boolean isGenerated(final Element element) {
    boolean _switchResult = false;
    boolean _matched = false;
    if (element instanceof JvmElementImpl) {
        _matched = true;
        Resource _eResource = ((JvmElementImpl<?>) element).getDelegate().eResource();
        Resource _eResource_1 = this.unit.getXtendFile().eResource();
        return Objects.equal(_eResource, _eResource_1);
    }
    if (!_matched) {
        if (element instanceof JvmTypeParameterDeclarationImpl) {
            _matched = true;
            Resource _eResource = ((JvmTypeParameterDeclarationImpl) element).getDelegate().eResource();
            Resource _eResource_1 = this.unit.getXtendFile().eResource();
            return Objects.equal(_eResource, _eResource_1);
        }
    }
    if (!_matched) {
        _switchResult = false;
    }
    return _switchResult;
}
Also used : JvmTypeParameterDeclarationImpl(org.eclipse.xtend.core.macro.declaration.JvmTypeParameterDeclarationImpl) Resource(org.eclipse.emf.ecore.resource.Resource) JvmElementImpl(org.eclipse.xtend.core.macro.declaration.JvmElementImpl)

Aggregations

Resource (org.eclipse.emf.ecore.resource.Resource)1 JvmElementImpl (org.eclipse.xtend.core.macro.declaration.JvmElementImpl)1 JvmTypeParameterDeclarationImpl (org.eclipse.xtend.core.macro.declaration.JvmTypeParameterDeclarationImpl)1