当前位置: 首页>>代码示例>>Java>>正文


Java HaxeCompilerError类代码示例

本文整理汇总了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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:14,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:13,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:13,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:15,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:13,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:13,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:9,代码来源:HaxeCompilerErrorTest.java

示例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());
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:12,代码来源:HaxeCompilerErrorParsingTest.java

示例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());
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:11,代码来源:HaxeCompilerErrorParsingTest.java


注:本文中的com.intellij.plugins.haxe.compilation.HaxeCompilerError类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。