Search in sources :

Example 1 with Bug303200TestLanguageParser

use of org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser in project xtext-eclipse by eclipse.

the class Bug303200Test method testBug303200_02.

@Test
public void testBug303200_02() throws Exception {
    Bug303200TestLanguageParser parser = get(Bug303200TestLanguageParser.class);
    Collection<FollowElement> elements = parser.getFollowElements("function f() {", false);
    for (FollowElement element : elements) {
        recursiveTestFollowElements(parser, element);
    }
}
Also used : Bug303200TestLanguageParser(org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser) FollowElement(org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement) Test(org.junit.Test)

Example 2 with Bug303200TestLanguageParser

use of org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser in project xtext-eclipse by eclipse.

the class Bug303200Test method testBug303200_01.

@Test
public void testBug303200_01() throws Exception {
    Bug303200TestLanguageParser parser = get(Bug303200TestLanguageParser.class);
    Collection<FollowElement> followElements = parser.getFollowElements("function f() {", false);
    assertEquals(4, followElements.size());
}
Also used : Bug303200TestLanguageParser(org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser) FollowElement(org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement) Test(org.junit.Test)

Example 3 with Bug303200TestLanguageParser

use of org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser in project xtext-eclipse by eclipse.

the class Bug303200Test method testBug303200_03.

@Test
public void testBug303200_03() throws Exception {
    Bug303200TestLanguageParser parser = get(Bug303200TestLanguageParser.class);
    Collection<FollowElement> followElements = Lists.newArrayList(parser.getFollowElements("function f() {} function f() {", false));
    assertEquals(4, followElements.size());
}
Also used : Bug303200TestLanguageParser(org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser) FollowElement(org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement) Test(org.junit.Test)

Aggregations

FollowElement (org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement)3 Bug303200TestLanguageParser (org.eclipse.xtext.ui.tests.editor.contentassist.ide.contentassist.antlr.Bug303200TestLanguageParser)3 Test (org.junit.Test)3