@@ -124,7 +124,7 @@ func getImportKindOrder(s1 *ast.Statement) int {
124124 }
125125}
126126
127- // compareImportsOrRequireStatements compares two import or require statements for sorting
127+ // CompareImportsOrRequireStatements compares two import or require statements for sorting
128128func CompareImportsOrRequireStatements (s1 * ast.Statement , s2 * ast.Statement , comparer func (a , b string ) int ) int {
129129 if cmp := compareModuleSpecifiersWorker (getModuleSpecifierExpression (s1 ), getModuleSpecifierExpression (s2 ), comparer ); cmp != 0 {
130130 return cmp
@@ -172,14 +172,14 @@ func GetNamedImportSpecifierComparer(preferences *lsutil.UserPreferences, compar
172172 }
173173}
174174
175- // getImportSpecifierInsertionIndex finds the insertion index for a new import specifier
175+ // GetImportSpecifierInsertionIndex finds the insertion index for a new import specifier
176176func GetImportSpecifierInsertionIndex (sortedImports []* ast.Node , newImport * ast.Node , comparer func (s1 , s2 * ast.Node ) int ) int {
177177 return core .FirstResult (core .BinarySearchUniqueFunc (sortedImports , func (mid int , value * ast.Node ) int {
178178 return comparer (value , newImport )
179179 }))
180180}
181181
182- // getOrganizeImportsStringComparerWithDetection detects the string comparer to use based on existing imports
182+ // GetOrganizeImportsStringComparerWithDetection detects the string comparer to use based on existing imports
183183func GetOrganizeImportsStringComparerWithDetection (originalImportDecls []* ast.Statement , preferences * lsutil.UserPreferences ) (comparer func (a , b string ) int , isSorted bool ) {
184184 result := detectModuleSpecifierCaseBySort ([][]* ast.Statement {originalImportDecls }, getComparers (preferences ))
185185 return result .comparer , result .isSorted
0 commit comments