@@ -137,6 +137,7 @@ export class ScopeManager implements eslint.Scope.ScopeManager {
137137 * acquire all scopes from node.
138138 * @param node node for the acquired scope.
139139 * @returns Scope array
140+ * @deprecated
140141 */
141142 acquireAll ( node : ESTree . Node ) : Scope [ ] | null ;
142143
@@ -158,10 +159,13 @@ export class ScopeManager implements eslint.Scope.ScopeManager {
158159
159160 isGlobalReturn ( ) : boolean ;
160161
162+ /** @deprecated */
161163 isModule ( ) : boolean ;
162164
165+ /** @deprecated */
163166 isImpliedStrict ( ) : boolean ;
164167
168+ /** @deprecated */
165169 isStrictModeSupported ( ) : boolean ;
166170}
167171
@@ -244,6 +248,7 @@ export class Scope<TVariable extends Variable = Variable, TReference extends Ref
244248
245249 /**
246250 * The tainted variables of this scope.
251+ * @deprecated
247252 */
248253 taints : Map < string , Variable > ;
249254
@@ -254,41 +259,49 @@ export class Scope<TVariable extends Variable = Variable, TReference extends Ref
254259
255260 /**
256261 * Dynamic flag for certain scope types.
262+ * @deprecated
257263 */
258264 dynamic : boolean ;
259265
260266 /**
261267 * Direct call to eval() flag.
268+ * @deprecated
262269 */
263270 directCallToEvalScope : boolean ;
264271
265272 /**
266273 * This scope flag.
274+ * @deprecated
267275 */
268276 thisFound : boolean ;
269277
270278 /**
271279 * Resolves a reference in this scope.
272280 * @param ref The reference to resolve.
273281 * @param noChain Whether to avoid chaining to parent scopes.
282+ * @deprecated
274283 */
275284 resolve ( ref : Reference , noChain ?: boolean ) : void ;
276285
277286 /**
278287 * Whether the reference is static.
288+ * @deprecated
279289 */
280290 isStatic ( ) : boolean ;
281291
282292 /**
283- * returns this scope has materialized arguments.
293+ * Returns whether this scope has materialized arguments.
294+ * @deprecated
284295 */
285296 isArgumentsMaterialized ( ) : boolean ;
286297
287298 /**
288- * returns this scope has materialized `this` reference
299+ * Returns whether this scope has materialized `this` reference.
300+ * @deprecated
289301 */
290302 isThisMaterialized ( ) : boolean ;
291303
304+ /** @deprecated */
292305 isUsedName ( name : string ) : boolean ;
293306}
294307
@@ -539,11 +552,13 @@ export class Variable<TReference extends Reference = Reference> implements eslin
539552
540553 /**
541554 * Whether the variable is tainted (e.g., potentially modified externally).
555+ * @deprecated
542556 */
543557 tainted : boolean ;
544558
545559 /**
546560 * Stack flag for certain variable types.
561+ * @deprecated
547562 */
548563 stack : boolean ;
549564}
@@ -554,7 +569,7 @@ export class Variable<TReference extends Reference = Reference> implements eslin
554569export class Reference implements eslint . Scope . Reference {
555570 /**
556571 * Creates a new Reference instance.
557- * @param identifier The identifier node of the reference.
572+ * @param ident The identifier node of the reference.
558573 * @param scope The scope where the reference occurs.
559574 * @param flag The reference flag (read, write, or read-write).
560575 * @param writeExpr The expression being written, if applicable.
@@ -563,7 +578,7 @@ export class Reference implements eslint.Scope.Reference {
563578 * @param init Whether this is an initialization reference.
564579 */
565580 constructor (
566- identifier : ESTree . Identifier ,
581+ ident : ESTree . Identifier ,
567582 scope : Scope ,
568583 flag : number ,
569584 writeExpr : ESTree . Expression | null ,
@@ -584,6 +599,7 @@ export class Reference implements eslint.Scope.Reference {
584599
585600 /**
586601 * Whether the reference is static.
602+ * @deprecated
587603 */
588604 isStatic ( ) : boolean ;
589605
@@ -605,6 +621,7 @@ export class Reference implements eslint.Scope.Reference {
605621 /**
606622 * Whether the reference comes from a dynamic scope (such as 'eval',
607623 * 'with', etc.), and may be trapped by dynamic scopes.
624+ * @deprecated
608625 */
609626 tainted : boolean ;
610627
@@ -615,6 +632,7 @@ export class Reference implements eslint.Scope.Reference {
615632
616633 /**
617634 * Whether this is a partial reference.
635+ * @deprecated
618636 */
619637 partial : boolean ;
620638
@@ -640,6 +658,9 @@ export class Reference implements eslint.Scope.Reference {
640658 * @returns True if the reference is read-write.
641659 */
642660 isReadWrite ( ) : boolean ;
661+
662+ /** @deprecated */
663+ flag : 1 | 2 | 3 ;
643664}
644665
645666/**
@@ -687,11 +708,13 @@ export class Definition {
687708
688709 /**
689710 * The index of the definition in a pattern, if applicable.
711+ * @deprecated
690712 */
691713 index : number | null ;
692714
693715 /**
694716 * The kind of variable (e.g., 'var', 'let', 'const'), if applicable.
717+ * @deprecated
695718 */
696719 kind : string | null ;
697720}
0 commit comments