Lines Matching full:imports
1 //===--- SortJavaScriptImports.cpp - Sort ES6 Imports -----------*- C++ -*-===//
10 /// This file implements a sort operation for JavaScript ES6 imports.
45 // but imports at different code locations are still conceptually the same. in operator ==()
64 // imports and exports support individual symbols, but also a wildcard syntax:
68 // This struct represents both exports and imports to build up the information
85 // Prefix from "import * as prefix". Empty for symbol imports and `export *`.
110 // Side effect imports and aliases might be ordering sensitive. Consider in operator <()
121 // '*' imports (with prefix) sort before {a, b, ...} imports. in operator <()
129 // JavaScriptImportSorter sorts JavaScript ES6 imports and exports. It is
130 // implemented as a TokenAnalyzer because ES6 imports have substantial syntactic
157 // The text range of all parsed imports, to be replaced later. in analyze()
168 // Insert breaks between imports and exports. in analyze()
170 // Separate imports groups with two line breaks, but keep all exports in analyze()
187 // This loop just backfills trailing spaces after the imports, which are in analyze()
201 LLVM_DEBUG(llvm::dbgs() << "Replacing imports:\n" in analyze()
254 // Imports can have formatting disabled (FormattingOff), so the code below
260 // Imports can have formatting disabled (FormattingOff), so the code below in sortModuleReferences()
267 // Skip over all imports w/ disabled formatting. in sortModuleReferences()
273 // Skip over all imports w/ disabled formatting. in sortModuleReferences()
317 // Merge symbols from identical imports. in mergeModuleReferences()
434 // Sort imports if any import line was affected. in parseModuleReferences()
462 // imports have a 'from' clause, exports might not. in parseModuleReference()
580 // For named imports with a trailing comma ("import {X,}"), consider the in parseNamedBindings()