use of org.eclipse.n4js.n4JS.Block in project n4js by eclipse.
the class FunctionDeclarationImpl method basicSetBody.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBody(Block newBody, NotificationChain msgs) {
Block oldBody = body;
body = newBody;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FUNCTION_DECLARATION__BODY, oldBody, newBody);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.Block in project n4js by eclipse.
the class N4FieldAccessorImpl method basicSetBody.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBody(Block newBody, NotificationChain msgs) {
Block oldBody = body;
body = newBody;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.N4_FIELD_ACCESSOR__BODY, oldBody, newBody);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.Block in project n4js by eclipse.
the class ControlFlowGraphFactory method isExitingFinallyBlock.
private static boolean isExitingFinallyBlock(ComplexNodeMapper cnMapper, Node node) {
ControlFlowElement cfe = node.getControlFlowElement();
ComplexNode cn = cnMapper.get(cfe);
boolean isExitingFinallyBlock = true;
isExitingFinallyBlock &= cfe instanceof Block;
isExitingFinallyBlock &= cfe.eContainer() instanceof FinallyBlock;
isExitingFinallyBlock &= cn.getExit() == node;
return isExitingFinallyBlock;
}
use of org.eclipse.n4js.n4JS.Block in project n4js by eclipse.
the class TryStatementImpl method basicSetBlock.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBlock(Block newBlock, NotificationChain msgs) {
Block oldBlock = block;
block = newBlock;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.TRY_STATEMENT__BLOCK, oldBlock, newBlock);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.Block in project n4js by eclipse.
the class FunctionOrFieldAccessorImpl method basicSetBody.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBody(Block newBody, NotificationChain msgs) {
Block oldBody = body;
body = newBody;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FUNCTION_OR_FIELD_ACCESSOR__BODY, oldBody, newBody);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations