Search in sources :

Example 1 with JSUntypedDeclarationInspection

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

the class FlexHighlightingTest method testAddTypeToDeclarationAmbiguous.

public void testAddTypeToDeclarationAmbiguous() throws Exception {
    enableInspectionTool(new JSUntypedDeclarationInspection());
    doHighlightingWithInvokeFixAndCheckResult("Add Type to Declaration", "as", getTestName(false) + ".as", getTestName(false) + "_2.as");
}
Also used : JSUntypedDeclarationInspection(com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection)

Example 2 with JSUntypedDeclarationInspection

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

the class ActionScriptHighlightingTest method testRestParameterIsNotMarkedAsHavingNoType.

public void testRestParameterIsNotMarkedAsHavingNoType() throws Exception {
    enableInspectionTool(new JSUntypedDeclarationInspection());
    doHighlightingWithInvokeFixAndCheckResult("Remove type reference", "js2");
}
Also used : JSUntypedDeclarationInspection(com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection)

Example 3 with JSUntypedDeclarationInspection

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

the class ActionScriptDaemonAnalyzerTestCase method runUntypedDeclarationInspectionTestWithFix.

protected void runUntypedDeclarationInspectionTestWithFix(final String fileName, final String[] files, String ext) throws Exception {
    try {
        enableInspectionTool(new JSUntypedDeclarationInspection());
        Collection<HighlightInfo> infos = doTestFor(true, files);
        findAndInvokeIntentionAction(infos, "Add Type to Declaration", myEditor, myFile);
        checkResultByFile(getBasePath() + "/" + fileName + "_after." + ext);
    } finally {
        LookupManager.getInstance(myProject).hideActiveLookup();
    }
}
Also used : HighlightInfo(com.intellij.codeInsight.daemon.impl.HighlightInfo) JSUntypedDeclarationInspection(com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection)

Aggregations

JSUntypedDeclarationInspection (com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection)3 HighlightInfo (com.intellij.codeInsight.daemon.impl.HighlightInfo)1