Search in sources :

Example 1 with JSUnusedLocalSymbolsInspection

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

the class FlexHighlightingTest method testOptimizeImportsFqn.

@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk, JSTestOption.WithUnusedImports })
public void testOptimizeImportsFqn() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    final String testName = getTestName(true);
    doTestFor(true, (Runnable) null, testName + ".as", testName + "_2.as");
    invokeNamedActionWithExpectedFileCheck(testName, "OptimizeImports", "as");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 2 with JSUnusedLocalSymbolsInspection

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

the class FlexHighlightingTest method testOptimizeImports.

@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk, JSTestOption.WithUnusedImports })
public void testOptimizeImports() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    final String testName = getTestName(false);
    doTestFor(true, (Runnable) null, testName + ".mxml", testName + "_2.as");
    invokeNamedActionWithExpectedFileCheck(testName, "OptimizeImports", "mxml");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 3 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedSymbols4_2.

public void testUnusedSymbols4_2() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Remove unused namespace 'baz'");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 4 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix_2.

public void testUnusedParameterHasCreateFieldQuickFix_2() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Create Field '_bar'");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 5 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasAssignToFieldQuickFix_2.

public void testUnusedParameterHasAssignToFieldQuickFix_2() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Assign parameter 'xxx' to field");
}
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