org.eclipse.xtext.scoping.impl.AbstractScope Java Examples

The following examples show how to use org.eclipse.xtext.scoping.impl.AbstractScope. 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: AbstractConstructorScopeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Test public void testGetOuterScope_01() {
	assertSame(IScope.NULLSCOPE, ((AbstractScope)getConstructorScope()).getParent());
}
 
Example #2
Source File: AbstractTypeScopeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Test public void testGetOuterScope_01() {
	assertSame(IScope.NULLSCOPE, ((AbstractScope)getTypeScope()).getParent());
}
 
Example #3
Source File: AbstractConstructorScopeTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Test public void testGetOuterScope_01() {
	assertSame(IScope.NULLSCOPE, ((AbstractScope)getConstructorScope()).getParent());
}
 
Example #4
Source File: AbstractTypeScopeTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Test public void testGetOuterScope_01() {
	assertSame(IScope.NULLSCOPE, ((AbstractScope)getTypeScope()).getParent());
}
 
Example #5
Source File: ScopeTest.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
private AbstractScope getEcoreClassifiersScope() {
	return new SimpleScope(getEcoreClassesScope(),Scopes.scopedElementsFor(Iterables.filter(EcorePackage.eINSTANCE.getEClassifiers(),
					EDataType.class)));
}
 
Example #6
Source File: ScopeTest.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
private AbstractScope getEcoreClassesScope() {
	return new SimpleScope(IScope.NULLSCOPE,Scopes.scopedElementsFor(Iterables
					.filter(EcorePackage.eINSTANCE.getEClassifiers(), EClass.class)));
}