Search in sources :

Example 16 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix_5.

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

Example 17 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedSymbols.

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

Example 18 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix.

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

Example 19 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedSymbols4.

@JSTestOptions(JSTestOption.WithLineMarkers)
public void testUnusedSymbols4() throws Exception {
    enableInspectionTool(new JSUnusedLocalSymbolsInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Remove unused class 'Foo'");
}
Also used : JSUnusedLocalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection)

Example 20 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testJSDoc.

public void testJSDoc() 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)

Aggregations

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