Skip to content

Commit 07ae505

Browse files
LeaVerouDmitrySharabin
authored andcommitted
Move all utils for working with iterables to a separate module
Remove unused utils
1 parent fc7d3e5 commit 07ae505

File tree

19 files changed

+58
-55
lines changed

19 files changed

+58
-55
lines changed

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MagicString from 'magic-string';
1010
import { rollup } from 'rollup';
1111
import ts from 'typescript';
1212
import { webfont } from 'webfont';
13-
import { toArray } from '../src/shared/util';
13+
import { toArray } from '../src/util/iterables';
1414
import { components } from './components';
1515
import { parallel, runTask, series } from './tasks';
1616
import type { ComponentProto } from '../src/types';

src/core/registry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { extend } from '../shared/language-util';
2-
import { forEach, kebabToCamelCase } from '../shared/util';
2+
import { kebabToCamelCase } from '../shared/util';
3+
import { forEach } from '../util/iterables';
34
import type { ComponentProto, Grammar } from '../types';
45
import type { Prism } from './prism';
56

src/languages/chaiscript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import clike from './clike';
44
import cpp from './cpp';
55
import type { LanguageProto } from '../types';

src/languages/crystal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import ruby from './ruby';
44
import type { LanguageProto } from '../types';
55

src/languages/flow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import javascript from './javascript';
44
import type { GrammarToken, LanguageProto } from '../types';
55

src/languages/hlsl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toArray } from '../shared/util';
1+
import { toArray } from '../util/iterables';
22
import c from './c';
33
import type { LanguageProto } from '../types';
44

src/languages/java.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import clike from './clike';
44
import type { LanguageProto } from '../types';
55

src/languages/javascript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { insertBefore } from '../shared/language-util';
22
import { JS_TEMPLATE, JS_TEMPLATE_INTERPOLATION } from '../shared/languages/patterns';
33
import { rest } from '../shared/symbols';
4-
import { toArray } from '../shared/util';
4+
import { toArray } from '../util/iterables';
55
import clike from './clike';
66
import type { LanguageProto } from '../types';
77

src/languages/squirrel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import clike from './clike';
44
import type { LanguageProto } from '../types';
55

src/languages/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { insertBefore } from '../shared/language-util';
2-
import { toArray } from '../shared/util';
2+
import { toArray } from '../util/iterables';
33
import javascript from './javascript';
44
import type { Grammar, LanguageProto } from '../types';
55

0 commit comments

Comments
 (0)