Community
Participate
Working Groups
}
/**
* @since 3.0
*/
public void initPathNameAst(PathNameCS pathNameCS, Object astNode) {
pathNameCS.setAst(astNode);
List<SimpleNameCS> simpleNames = pathNameCS.getSimpleNames();
for (int i = simpleNames.size() - 1; i >= 0; --i) {
simpleNames.get(i).setAst(astNode);
astNode = astNode instanceof EObject ? ((EObject)astNode).eContainer() : null;
* Returns true if the token kind is an identifier or keyword, otherwise
* false.
*
ERROR(typeCS, "typeCS", message);//$NON-NLS-1$
astNode = createDummyInvalidType(env, typeCS, message);
initPathNameAst((PathNameCS)typeCS, astNode);
typeCS.setAst(astNode);
} else if (typeCS instanceof CollectionTypeCS
|| typeCS instanceof TupleTypeCS) {
if (typeCS instanceof CollectionTypeCS) {
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
return super.eIsSet(featureID);
* Set the associated AST object to newAst, and set the correspondiing
* AST objects of the child simpleNames to newAst and its containers.
@Override
public void setAst(Object newAst) {
// TODO Auto-generated method stub
Object node = newAst;
simpleNames.get(i).setAst(node);
node = node instanceof EObject ? ((EObject)node).eContainer() : null;
super.setAst(newAst);