Java Code Examples for org.eclipse.xtext.xbase.typesystem.IResolvedTypes#NULL
The following examples show how to use
org.eclipse.xtext.xbase.typesystem.IResolvedTypes#NULL .
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: CompoundReentrantTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
protected IResolvedTypes getDelegate(int idx) { if (!sealed) { reentrantResolve(getMonitor()); } if (idx < delegates.length) { IResolvedTypes result = delegates[idx]; if (result == null) { if (next != idx) { return delegates[idx] = resolvers.get(idx).reentrantResolve(getMonitor()); } return IResolvedTypes.NULL; } return result; } throw new IndexOutOfBoundsException("Index: "+idx+", Size: "+delegates.length); }
Example 2
Source File: DefaultReentrantTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
protected IResolvedTypes resolve(CancelIndicator monitor) { operationCanceledManager.checkCanceled(monitor); if (isInvalidRoot()) { return IResolvedTypes.NULL; } RootResolvedTypes result = createResolvedTypes(monitor); IFeatureScopeSession session = batchScopeProvider.newSession(root.eResource()); computeTypes(result, session); result.resolveUnboundTypeParameters(); result.resolveProxies(); result.addDiagnostics(root.eResource()); result.processDeferredLogic(); return result; }
Example 3
Source File: AbstractBatchTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public final IResolvedTypes resolveTypes(final /* @Nullable */ EObject object, CancelIndicator monitor) { if (object == null || object.eIsProxy()) { return IResolvedTypes.NULL; } Resource resource = object.eResource(); validateResourceState(resource); if (resource instanceof JvmMemberInitializableResource) { ((JvmMemberInitializableResource) resource).ensureJvmMembersInitialized(); } return doResolveTypes(object, monitor); }
Example 4
Source File: CompoundReentrantTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
protected IResolvedTypes getDelegate(XExpression expression) { for(int i = 0; i < resolvers.size(); i++) { AbstractRootedReentrantTypeResolver resolver = resolvers.get(i); if (resolver.isHandled(expression)) { return getDelegate(i); } } return IResolvedTypes.NULL; }
Example 5
Source File: CompoundReentrantTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
protected IResolvedTypes getDelegate(EObject object) { for(int i = 0; i < resolvers.size(); i++) { AbstractRootedReentrantTypeResolver resolver = resolvers.get(i); if (resolver.isHandled(object)) { return getDelegate(i); } } return IResolvedTypes.NULL; }
Example 6
Source File: IReentrantTypeResolver.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override public IResolvedTypes reentrantResolve(CancelIndicator monitor) { return IResolvedTypes.NULL; }
Example 7
Source File: EmptyResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override protected IResolvedTypes delegate() { return IResolvedTypes.NULL; }