Example usage for org.eclipse.jdt.core.compiler IProblem ParsingErrorMergeTokens

List of usage examples for org.eclipse.jdt.core.compiler IProblem ParsingErrorMergeTokens

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.compiler IProblem ParsingErrorMergeTokens.

Prototype

int ParsingErrorMergeTokens

To view the source code for org.eclipse.jdt.core.compiler IProblem ParsingErrorMergeTokens.

Click Source Link

Usage

From source file:org.eclipse.objectteams.otdt.tests.compiler.errorreporting.SourceSnippetRecoveryTest.java

License:Open Source License

/**
 * A "replace-callin binding" is used with a base call.
 * Bound role method must be declared as callin method.
 *//*from  w ww  . ja  v a  2 s .  c o  m*/
public void testIncompleteCallinBinding() {
    createFile("MyClass",
            "public class MyClass " + NL + "{ " + NL + "    baseMethod <- met1, met2;" + NL + "} ");

    compileFile("MyClass");

    assertTrue(hasExpectedProblems(new int[] { IProblem.ParsingErrorMergeTokens })); // silly but factual
}