Interface ITypeAssigner
-
- All Known Implementing Classes:
CompoundTypeAssigner
,TypeAssigner
public interface ITypeAssigner
Allows to bulk-assign types foridentifiable elements
, e.g. assign the types for the parametes of an inferredoperation
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)
The given element is tagged with the given type.ITypeComputationState
getForkedState()
Returns the forked state that knows about the newly assigned types.ITypeReferenceOwner
getReferenceOwner()
Returns the current owner.LightweightTypeReference
toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Can be used to convertJvmTypeReferences
in the context of the newly forked state.
-
-
-
Method Detail
-
assignType
void assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)
The given element is tagged with the given type. If this type isnull
, it is treated like an error type.
-
getForkedState
ITypeComputationState getForkedState()
Returns the forked state that knows about the newly assigned types.
-
getReferenceOwner
ITypeReferenceOwner getReferenceOwner()
Returns the current owner.
-
toLightweightTypeReference
LightweightTypeReference toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Can be used to convertJvmTypeReferences
in the context of the newly forked state.- Parameters:
reference
- the reference to convert.- Returns:
- the converted reference.
-
-