Skip to content

Commit 5c75bf2

Browse files
committed
Refactor: rename this_fiels -> class_fields
1 parent f83feb0 commit 5c75bf2

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

src/analysis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { NodePath } from "@babel/core";
22
import type { Scope } from "@babel/traverse";
33
import type { ClassDeclaration, ClassMethod, Identifier, JSXIdentifier, TSType, TSTypeParameterDeclaration } from "@babel/types";
44
import { AnalysisError } from "./analysis/error.js";
5-
import { analyzeClassFields } from "./analysis/this_fields.js";
5+
import { analyzeClassFields } from "./analysis/class_fields.js";
66
import { analyzeState, StateObjAnalysis } from "./analysis/state.js";
77
import { getAndDelete } from "./utils.js";
88
import { analyzeProps, PropsObjAnalysis } from "./analysis/prop.js";

src/analysis/prop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Expression, MemberExpression, TSMethodSignature, TSPropertySignatu
44
import { getOr, memberName } from "../utils.js";
55
import { AnalysisError } from "./error.js";
66
import type { LocalManager } from "./local.js";
7-
import { StaticFieldSite, InstanceFieldSite } from "./this_fields.js";
7+
import { StaticFieldSite, InstanceFieldSite } from "./class_fields.js";
88
import { trackMember } from "./track_member.js";
99
import { PreAnalysisResult } from "./pre.js";
1010

src/analysis/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getOr, memberName } from "../utils.js";
44
import { AnalysisError } from "./error.js";
55
import { PreAnalysisResult } from "./pre.js";
66
import type { LocalManager } from "./local.js";
7-
import type { InstanceFieldSite } from "./this_fields.js";
7+
import type { InstanceFieldSite } from "./class_fields.js";
88
import { trackMember } from "./track_member.js";
99

1010
export type StateObjAnalysis = Map<string, StateAnalysis>;

src/analysis/user_defined.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ArrowFunctionExpression, ClassMethod, ClassPrivateMethod, Expression, F
33
import { isClassMethodLike, nonNullPath } from "../utils.js";
44
import { AnalysisError } from "./error.js";
55
import { analyzeLibRef, isReactRef } from "./lib.js";
6-
import type { InstanceFieldSite } from "./this_fields.js";
6+
import type { InstanceFieldSite } from "./class_fields.js";
77

88
const SPECIAL_MEMBER_NAMES = new Set<string>([
99
// Special variables

0 commit comments

Comments
 (0)