Java Code Examples for org.eclipse.xtext.xbase.typesystem.computation.ITypeExpectation#acceptActualType()
The following examples show how to use
org.eclipse.xtext.xbase.typesystem.computation.ITypeExpectation#acceptActualType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractTypeComputationState.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public void acceptActualType(LightweightTypeReference type, int flags) { if ((flags & ConformanceFlags.CHECKED) == 0) flags |= ConformanceFlags.UNCHECKED; List<? extends ITypeExpectation> expectations = (flags & ConformanceFlags.EXPLICIT_VOID_RETURN) != 0 ? getReturnExpectations() : getExpectations(); for(ITypeExpectation expectation: expectations) { expectation.acceptActualType(type, flags); } }
Example 2
Source File: AbstractTypeComputationState.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override public void acceptActualType(LightweightTypeReference type) { for(ITypeExpectation expectation: getExpectations()) { expectation.acceptActualType(type, ConformanceFlags.UNCHECKED); } }