org.eclipse.xtext.xbase.typesystem.util.ExtendedEarlyExitComputer Java Examples

The following examples show how to use org.eclipse.xtext.xbase.typesystem.util.ExtendedEarlyExitComputer. 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: XtxtUMLRuntimeModule.java    From txtUML with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends ExtendedEarlyExitComputer> bindExtendedEarlyExitComputer() {
	return XtxtUMLEarlyExitComputer.class;
}
 
Example #2
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends ExtendedEarlyExitComputer> bindExtendedEarlyExitComputer() {
	return ExtendedSARLEarlyExitComputer.class;
}
 
Example #3
Source File: RootResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns <code>true</code> for expressions that seem to be early exit expressions, e.g.
 * <pre>
 *   while(condition) {
 *     if (anotherCondition)
 *       return value
 *     changeResultOfFirstCondition
 *   }
 * </pre>
 */
protected boolean isIntentionalEarlyExit(/* @Nullable */ XExpression expression) {
	ExtendedEarlyExitComputer earlyExitComputer = getReferenceOwner().getServices().getEarlyExitComputer();
	return earlyExitComputer.isIntentionalEarlyExit(expression);
}