Search in sources :

Example 11 with JSUnusedLocalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.

the class FlexHighlightingTest method testPredefinedFunReference.

@JSTestOptions({ JSTestOption.WithFlexSdk, JSTestOption.WithJsSupportLoader, JSTestOption.WithUnusedImports })
public void testPredefinedFunReference() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doTestFor(true, getTestName(false) + ".mxml", "getFoo.swc");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 12 with JSUnusedLocalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testRemoveMethodWithAsdoc.

public void testRemoveMethodWithAsdoc() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doHighlightingWithInvokeFixAndCheckResult("Remove unused method 'Unused'", "js2");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 13 with JSUnusedLocalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testHighlightInternalThingsFromOtherFiles.

public void testHighlightInternalThingsFromOtherFiles() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    final String testName = getTestName(false);
    doTestFor(true, testName + ".js2", testName + "_2.js2");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 14 with JSUnusedLocalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testUnusedSymbols2.

public void testUnusedSymbols2() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    defaultTest();
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 15 with JSUnusedLocalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testAnyAttrInE4X.

@JSTestOptions({ JSTestOption.WithUnusedImports })
public void testAnyAttrInE4X() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    defaultTest();
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Aggregations

JSUnusedLocalSymbolsInspection (com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)24 HighlightInfo (com.intellij.codeInsight.daemon.impl.HighlightInfo)1