Skip to content

[Haxe] Organize imports shouldn't touch #elseif blocks #783

@Gama11

Description

@Gama11

Organize imports ignores imports in blocks like these (as it should, too complex for FD to handle properly):

import haxe.unit.TestCase;

#if flash
import flash.display.Sprite;
import flixel.FlxGame;
#end

However, this:

import haxe.unit.TestCase;

#if flash
import flash.display.Sprite;
import flixel.FlxGame;
#elseif windows
import cpp.abi.Abi;
#end

Is turned into:

#if flash
import flash.display.Sprite;
import flixel.FlxGame;
#elseif windows
#end

This is tested with none of the imported types being used in the file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions