importsort.sort

Undocumented in source.

Members

Functions

sortImports
void sortImports(R entries, SortConfig config)

sort imports of an entry (file) (entries: DirEntry[])

sortImports
void sortImports(File infile, File outfile, SortConfig config)

raw-implementation of sort file (infile -> outfile)

writeImports
void writeImports(File outfile, SortConfig config, Import[] matches)

write import-statements to outfile with config

Manifest constants

PATTERN
enum PATTERN;

the pattern to determinate a line is an import or not

Structs

Identifier
struct Identifier

helper-struct for identifiers and its bindings

Import
struct Import

the import statement description

SortConfig
struct SortConfig

configuration for sorting imports

Meta