diff options
Diffstat (limited to 'rba.tool.editor/src/rba/tool/editor/scoping/IExpressionScope.xtend')
-rw-r--r-- | rba.tool.editor/src/rba/tool/editor/scoping/IExpressionScope.xtend | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rba.tool.editor/src/rba/tool/editor/scoping/IExpressionScope.xtend b/rba.tool.editor/src/rba/tool/editor/scoping/IExpressionScope.xtend new file mode 100644 index 0000000..12f7ca4 --- /dev/null +++ b/rba.tool.editor/src/rba/tool/editor/scoping/IExpressionScope.xtend @@ -0,0 +1,22 @@ +package rba.tool.editor.scoping + +import org.eclipse.emf.ecore.EObject +import org.eclipse.xtext.scoping.IScope + +interface IExpressionScope { + + enum Anchor { + UNKNOWN, + CONSTRAINT + } + + def IScope getFeatureScope(EObject model, IExpressionScope.Anchor anchor); + + IExpressionScope NULL = new NullExpressionScope(); + + class NullExpressionScope implements IExpressionScope { + override getFeatureScope(EObject model, IExpressionScope.Anchor anchor) { + return IScope.NULLSCOPE; + } + } +} |