本文整理汇总了Java中com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator类的典型用法代码示例。如果您正苦于以下问题:Java HaxeTypeAnnotator类的具体用法?Java HaxeTypeAnnotator怎么用?Java HaxeTypeAnnotator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HaxeTypeAnnotator类属于com.intellij.plugins.haxe.ide.annotator包,在下文中一共展示了HaxeTypeAnnotator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doTest
import com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator; //导入依赖的package包/类
private void doTest(String... additionalPaths) throws Exception {
final String[] paths = ArrayUtil.append(additionalPaths, getTestName(false) + ".hx");
myFixture.configureByFiles(ArrayUtil.reverseArray(paths));
final HaxeTypeAnnotator annotator = new HaxeTypeAnnotator();
try {
LanguageAnnotators.INSTANCE.addExplicitExtension(HaxeLanguage.INSTANCE, annotator);
myFixture.enableInspections(getAnnotatorBasedInspection());
try {
myFixture.testHighlighting(true, true, true, myFixture.getFile().getVirtualFile());
}
finally {
LanguageAnnotators.INSTANCE.removeExplicitExtension(HaxeLanguage.INSTANCE, annotator);
}
} finally {
LanguageAnnotators.INSTANCE.removeExplicitExtension(HaxeLanguage.INSTANCE, annotator);
}
}
示例2: doTestNoFix
import com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator; //导入依赖的package包/类
private void doTestNoFix(boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings, String... additionalFiles) throws Exception {
myFixture.configureByFiles(ArrayUtil.mergeArrays(new String[]{getTestName(false) + ".hx"}, additionalFiles));
final HaxeTypeAnnotator annotator = new HaxeTypeAnnotator();
LanguageAnnotators.INSTANCE.addExplicitExtension(HaxeLanguage.INSTANCE, annotator);
myFixture.enableInspections(getAnnotatorBasedInspection());
myFixture.testHighlighting(true, false, true);
}
示例3: doTestNoFix
import com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator; //导入依赖的package包/类
private void doTestNoFix(boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings) throws Exception {
boolean old = HaxeSemanticAnnotatorConfig.ENABLE_EXPERIMENTAL_BODY_CHECK;
HaxeSemanticAnnotatorConfig.ENABLE_EXPERIMENTAL_BODY_CHECK = true;
myFixture.configureByFiles(getTestName(false) + ".hx");
final HaxeTypeAnnotator annotator = new HaxeTypeAnnotator();
LanguageAnnotators.INSTANCE.addExplicitExtension(HaxeLanguage.INSTANCE, annotator);
myFixture.enableInspections(getAnnotatorBasedInspection());
myFixture.testHighlighting(true, false, false);
HaxeSemanticAnnotatorConfig.ENABLE_EXPERIMENTAL_BODY_CHECK = old;
}
示例4: doTest
import com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator; //导入依赖的package包/类
private void doTest(String... additionalPaths) throws Exception {
final String[] paths = ArrayUtil.append(additionalPaths, getTestName(false) + ".hx");
myFixture.configureByFiles(ArrayUtil.reverseArray(paths));
final HaxeTypeAnnotator annotator = new HaxeTypeAnnotator();
LanguageAnnotators.INSTANCE.addExplicitExtension(HaxeLanguage.INSTANCE, annotator);
myFixture.enableInspections(new DefaultHighlightVisitorBasedInspection.AnnotatorBasedInspection());
try {
myFixture.testHighlighting(true, true, true, myFixture.getFile().getVirtualFile());
}
finally {
LanguageAnnotators.INSTANCE.removeExplicitExtension(HaxeLanguage.INSTANCE, annotator);
}
}