Search in sources :

Example 6 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testHighlightThingsFromUnopenedNamespaces.

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

Example 7 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix_3.

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

Example 8 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnresolvedThisInCallback.

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

Example 9 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedSymbols3.

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

Example 10 with JSUnusedLocalSymbolsInspection

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

the class ActionScriptHighlightingTest method testUnusedParameterHasAssignToFieldQuickFix_3.

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