/******************************************************************************* * Copyright (c) 2011 Bruno Medeiros and other Contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Bruno Medeiros - initial API and implementation *******************************************************************************/ package dtool.ast.expressions; import static melnorme.utilbox.core.Assert.AssertNamespace.assertTrue; import melnorme.lang.tooling.ast_actual.ASTNode; import melnorme.lang.tooling.context.ISemanticContext; import melnorme.lang.tooling.engine.resolver.IResolvable; import melnorme.lang.tooling.symbols.INamedElement; import dtool.ast.references.Reference; /** * A {@link Resolvable} is either an {@link Reference} or {@link Expression} */ public abstract class Resolvable extends ASTNode implements IResolvable { public Resolvable() { assertTrue(this instanceof Reference || this instanceof Expression); } public abstract INamedElement resolveAsQualifiedRefRoot(ISemanticContext context); }