當前位置: 首頁>>代碼示例>>Java>>正文


Java HaxeTypeAnnotator類代碼示例

本文整理匯總了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);
  }
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:18,代碼來源:HaxeAnnotationTest.java

示例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);
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:8,代碼來源:HaxeSemanticAnnotatorTest.java

示例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;
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:11,代碼來源:HaxeSemanticBodyAnnotatorTest.java

示例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);
  }
}
 
開發者ID:consulo,項目名稱:consulo-haxe,代碼行數:14,代碼來源:HaxeAnnotationTest.java


注:本文中的com.intellij.plugins.haxe.ide.annotator.HaxeTypeAnnotator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。