File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/utilities/ast/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import type { TSESTree } from "@typescript-eslint/types";
22import { _ } from "@eslint-react/eff" ;
33import { AST_NODE_TYPES as T } from "@typescript-eslint/types" ;
44
5- export function getTopLevelIdentifier ( node : TSESTree . Node ) : TSESTree . Identifier | _ {
5+ export function getLeftMostIdentifier ( node : TSESTree . Node ) : TSESTree . Identifier | _ {
66 switch ( node . type ) {
77 case T . Identifier :
88 return node ;
99 case T . MemberExpression :
10- return getTopLevelIdentifier ( node . object ) ;
10+ return getLeftMostIdentifier ( node . object ) ;
1111 default :
1212 return _ ;
1313 }
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ export * from "./get-array-method-callback-index-param-position";
44export * from "./get-class-identifier" ;
55export * from "./get-ecma-expression" ;
66export * from "./get-function-identifier" ;
7+ export * from "./get-left-most-identifier" ;
78export * from "./get-literal-value-type" ;
89export * from "./get-nested-expressions" ;
910export * from "./get-nested-identifiers" ;
1011export * from "./get-nested-return-statements" ;
1112export * from "./get-property-name" ;
12- export * from "./get-top-level-identifier" ;
1313export * from "./is" ;
1414export * from "./is-array-from-call" ;
1515export * from "./is-array-map-call" ;
You can’t perform that action at this time.
0 commit comments