Search in sources :

Example 11 with VariableDeclaration

use of org.eclipse.n4js.n4JS.VariableDeclaration in project n4js by eclipse.

the class BindingPropertyImpl method getName.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public String getName() {
    String _elvis = null;
    String _name = super.getName();
    if (_name != null) {
        _elvis = _name;
    } else {
        BindingElement _value = this.getValue();
        VariableDeclaration _varDecl = null;
        if (_value != null) {
            _varDecl = _value.getVarDecl();
        }
        String _name_1 = null;
        if (_varDecl != null) {
            _name_1 = _varDecl.getName();
        }
        _elvis = _name_1;
    }
    return _elvis;
}
Also used : BindingElement(org.eclipse.n4js.n4JS.BindingElement) VariableDeclaration(org.eclipse.n4js.n4JS.VariableDeclaration)

Aggregations

VariableDeclaration (org.eclipse.n4js.n4JS.VariableDeclaration)11 IdentifiableElement (org.eclipse.n4js.ts.types.IdentifiableElement)4 EObject (org.eclipse.emf.ecore.EObject)3 ExportDeclaration (org.eclipse.n4js.n4JS.ExportDeclaration)3 ExportedVariableDeclaration (org.eclipse.n4js.n4JS.ExportedVariableDeclaration)3 IdentifierRef (org.eclipse.n4js.n4JS.IdentifierRef)3 ParameterizedCallExpression (org.eclipse.n4js.n4JS.ParameterizedCallExpression)3 ParameterizedPropertyAccessExpression (org.eclipse.n4js.n4JS.ParameterizedPropertyAccessExpression)3 VariableStatement (org.eclipse.n4js.n4JS.VariableStatement)3 ParameterizedTypeRef (org.eclipse.n4js.ts.typeRefs.ParameterizedTypeRef)3 TypeRef (org.eclipse.n4js.ts.typeRefs.TypeRef)3 AdditiveExpression (org.eclipse.n4js.n4JS.AdditiveExpression)2 Annotation (org.eclipse.n4js.n4JS.Annotation)2 AssignmentExpression (org.eclipse.n4js.n4JS.AssignmentExpression)2 AwaitExpression (org.eclipse.n4js.n4JS.AwaitExpression)2 BinaryBitwiseExpression (org.eclipse.n4js.n4JS.BinaryBitwiseExpression)2 BinaryLogicalExpression (org.eclipse.n4js.n4JS.BinaryLogicalExpression)2 BindingElement (org.eclipse.n4js.n4JS.BindingElement)2 CastExpression (org.eclipse.n4js.n4JS.CastExpression)2 CommaExpression (org.eclipse.n4js.n4JS.CommaExpression)2