本文整理匯總了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);
}
}