本文整理汇总了Java中com.intellij.plugins.haxe.compilation.HaxeCompilerError类的典型用法代码示例。如果您正苦于以下问题:Java HaxeCompilerError类的具体用法?Java HaxeCompilerError怎么用?Java HaxeCompilerError使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HaxeCompilerError类属于com.intellij.plugins.haxe.compilation包,在下文中一共展示了HaxeCompilerError类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: disabledtestUserProperiesErrorWin
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void disabledtestUserProperiesErrorWin() {
final String error =
"C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx:5: characters 0-21 : Class not found : StringTools212";
final String rootPath = "C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.ERROR, compilerError.getCategory());
assertEquals("C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx", compilerError.getPath());
assertEquals("Class not found : StringTools212", compilerError.getErrorMessage());
assertEquals(5, compilerError.getLine());
assertEquals(0, compilerError.getColumn());
}
示例2: testNMEErrorWin
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testNMEErrorWin() {
final String error = "src/Main.hx:5: characters 0-21 : Class not found : StringTools212";
final String rootPath = "C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.ERROR, compilerError.getCategory());
assertEquals("C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx", compilerError.getPath());
assertEquals("Class not found : StringTools212", compilerError.getErrorMessage());
assertEquals(5, compilerError.getLine());
assertEquals(0, compilerError.getColumn());
}
示例3: testNMEErrorRelativeUnix
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testNMEErrorRelativeUnix() {
final String error = "./HelloWorld.hx:12: characters 1-16 : Unknown identifier : addEvetListener";
final String rootPath = "/trees/test";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.ERROR, compilerError.getCategory());
assertEquals("/trees/test/./HelloWorld.hx", compilerError.getPath());
assertEquals("Unknown identifier : addEvetListener", compilerError.getErrorMessage());
assertEquals(12, compilerError.getLine());
assertEquals(1, compilerError.getColumn());
}
示例4: testNMEErrorAbsoluteUnix
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testNMEErrorAbsoluteUnix() {
final String error = "/an/absolute/path/HelloWorld.hx:12: characters 1-16 : Unknown identifier : addEvetListener";
final String rootPath = "/trees/test";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.ERROR, compilerError.getCategory());
if (Platform.current() == Platform.UNIX) {
assertEquals("/an/absolute/path/HelloWorld.hx", compilerError.getPath());
}
assertEquals("Unknown identifier : addEvetListener", compilerError.getErrorMessage());
assertEquals(12, compilerError.getLine());
assertEquals(1, compilerError.getColumn());
}
示例5: testNMEErrorNoColumnUnix
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testNMEErrorNoColumnUnix() {
final String error = "hello/HelloWorld.hx:18: lines 18-24 : Interfaces cannot implement another interface (use extends instead)";
final String rootPath = "/trees/test";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.ERROR, compilerError.getCategory());
assertEquals("/trees/test/hello/HelloWorld.hx", compilerError.getPath());
assertEquals("Interfaces cannot implement another interface (use extends instead)", compilerError.getErrorMessage());
assertEquals(18, compilerError.getLine());
assertEquals(-1, compilerError.getColumn());
}
示例6: testWarnings
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testWarnings() {
final String error = "hello/HelloWorld.hx:18: lines 18-24 : Warning : Danger, Will Robinson!";
final String rootPath = "/trees/test";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals(CompilerMessageCategory.WARNING, compilerError.getCategory());
assertEquals("/trees/test/hello/HelloWorld.hx", compilerError.getPath());
assertEquals("Danger, Will Robinson!", compilerError.getErrorMessage());
assertEquals(18, compilerError.getLine());
assertEquals(-1, compilerError.getColumn());
}
示例7: doTest
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
private void doTest(String output, CompilerMessageCategory cat, String msg, String path, int line, int col) throws Throwable {
HaxeCompilerError e = HaxeCompilerError.create("", output);
assertEquals(cat, e.getCategory());
assertEquals(msg, e.getErrorMessage());
assertEquals(path, e.getPath());
assertEquals(line, e.getLine());
assertEquals(col, e.getColumn());
}
示例8: testUserProperiesErrorWin
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testUserProperiesErrorWin() {
final String error =
"C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx:5: characters 0-21 : Class not found : StringTools212";
final String rootPath = "C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals("C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx", compilerError.getPath());
assertEquals("Class not found : StringTools212", compilerError.getErrorMessage());
assertEquals(5, compilerError.getLine());
}
示例9: testNMEErrorWin
import com.intellij.plugins.haxe.compilation.HaxeCompilerError; //导入依赖的package包/类
public void testNMEErrorWin() {
final String error = "src/Main.hx:5: characters 0-21 : Class not found : StringTools212";
final String rootPath = "C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker";
final HaxeCompilerError compilerError = HaxeCompilerError.create(rootPath, error, false);
assertNotNull(compilerError);
assertEquals("C:/Users/fedor.korotkov/workspace/haxe-bubble-breaker/src/Main.hx", compilerError.getPath());
assertEquals("Class not found : StringTools212", compilerError.getErrorMessage());
assertEquals(5, compilerError.getLine());
}