@Deprecated
public class LocalVariableScopeContext
extends java.lang.Object
XbaseScopeProvider.createLocalVarScope(org.eclipse.xtext.scoping.IScope, LocalVariableScopeContext)
,
XbaseScopeProvider.createLocalVariableScopeContext(EObject, EReference, boolean, int)
Constructor and Description |
---|
LocalVariableScopeContext(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference,
boolean includeCurrentBlock,
int idx,
boolean referredFromClosure,
ILogicalContainerProvider expressionContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawnForContainer()
Deprecated.
Used to decide whether the container hierarchy for the referenced
context should be walked up or not. |
org.eclipse.emf.ecore.EObject |
getContext()
Deprecated.
|
int |
getIndex()
Deprecated.
Returns the index in the current block for the 'leaf context'.
|
org.eclipse.emf.ecore.EObject |
getLogicalOrRealContainer()
Deprecated.
|
org.eclipse.emf.ecore.EReference |
getReference()
Deprecated.
|
boolean |
isIncludeCurrentBlock()
Deprecated.
|
boolean |
isReferredFromClosure()
Deprecated.
|
LocalVariableScopeContext |
spawnForContainer()
Deprecated.
Create a copy of the context and adjust parameters, e.g. the information about the block scoping context
is set to default while the flag
referredFromClosure is updated appropriately. |
public LocalVariableScopeContext(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, boolean includeCurrentBlock, int idx, boolean referredFromClosure, ILogicalContainerProvider expressionContext)
public LocalVariableScopeContext spawnForContainer()
referredFromClosure
is updated appropriately.null
.canSpawnForContainer()
public org.eclipse.emf.ecore.EObject getLogicalOrRealContainer()
public boolean canSpawnForContainer()
context
should be walked up or not.public org.eclipse.emf.ecore.EObject getContext()
public org.eclipse.emf.ecore.EReference getReference()
public int getIndex()
public boolean isIncludeCurrentBlock()
public boolean isReferredFromClosure()