Skip to content

Commit a158690

Browse files
committed
Restructure files
1 parent 34e8c14 commit a158690

27 files changed

+30
-36
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lint": "run-p \"lint:*\"",
2525
"lint:eslint": "eslint",
2626
"lint:prettier": "prettier --check .",
27-
"lint:tsc": "tsc --noEmit",
27+
"lint:types": "tsc --noEmit",
2828
"fix": "run-s \"fix:*\"",
2929
"fix:eslint": "yarn lint:eslint --fix",
3030
"fix:prettier": "yarn lint:prettier --write",

src/ast-transform/node-transformer.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ import {
44
ParenthesizedExpression,
55
} from '@angular/compiler';
66

7-
import { transformVisitors } from '../ast-transform-visitors/index.ts';
8-
import type {
9-
NGEmptyExpression,
10-
NGNode,
11-
} from '../ast-transform-visitors/node-types.ts';
127
import {
138
type IncompleteNode,
149
type RawLocationInformation,
1510
Source,
1611
} from '../source.ts';
12+
import type { NGEmptyExpression, NGNode } from './node-types.ts';
13+
import { transformVisitors } from './visitors.ts';
1714

1815
export class NodeTransformer extends Source {
1916
node: AST;
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type AstVisitor } from '@angular/compiler';
22

3-
import * as visitors from './visitors.ts';
3+
import * as visitors from './visitors/index.ts';
44

55
type TransformVisitors = Required<Omit<AstVisitor, 'visit'>>;
66

src/ast-transform-visitors/array-expression.ts renamed to src/ast-transform/visitors/array-expression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type LiteralArray } from '@angular/compiler';
22
import type * as babel from '@babel/types';
33

4-
import { type NodeTransformer } from '../ast-transform/node-transformer.ts';
4+
import { type NodeTransformer } from '../node-transformer.ts';
55

66
export const visitLiteralArray = (
77
node: LiteralArray,

src/ast-transform-visitors/ast-with-source.ts renamed to src/ast-transform/visitors/ast-with-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type ASTWithSource } from '@angular/compiler';
22
import type * as babel from '@babel/types';
33

4-
import { type NodeTransformer } from '../ast-transform/node-transformer.ts';
4+
import { type NodeTransformer } from '../node-transformer.ts';
55

66
export const visitASTWithSource = (
77
node: ASTWithSource,

src/ast-transform-visitors/binary-expression.ts renamed to src/ast-transform/visitors/binary-expression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Binary } from '@angular/compiler';
22
import type * as babel from '@babel/types';
33

4-
import { type NodeTransformer } from '../ast-transform/node-transformer.ts';
4+
import { type NodeTransformer } from '../node-transformer.ts';
55

66
const isAssignmentOperator = (
77
operator: Binary['operation'],

src/ast-transform-visitors/call-expression.ts renamed to src/ast-transform/visitors/call-expression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type Call, type SafeCall } from '@angular/compiler';
22
import type * as babel from '@babel/types';
33

4-
import { type NodeTransformer } from '../ast-transform/node-transformer.ts';
5-
import { isOptionalObjectOrCallee } from '../utilities.ts';
4+
import { isOptionalObjectOrCallee } from '../../utilities.ts';
5+
import { type NodeTransformer } from '../node-transformer.ts';
66

77
const callOptions = { optional: false } as const;
88
const safeCallOptions = { optional: true } as const;

src/ast-transform-visitors/chained-expression.ts renamed to src/ast-transform/visitors/chained-expression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type Chain } from '@angular/compiler';
22
import type * as babel from '@babel/types';
33

4-
import { type NodeTransformer } from '../ast-transform/node-transformer.ts';
5-
import type { NGChainedExpression } from './node-types.ts';
4+
import { type NodeTransformer } from '../node-transformer.ts';
5+
import type { NGChainedExpression } from '../node-types.ts';
66

77
export const visitChain = (
88
node: Chain,

0 commit comments

Comments
 (0)