We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scope.markAsStale
1 parent 59aac66 commit 8ece6b9Copy full SHA for 8ece6b9
src/scope.ts
@@ -22,6 +22,7 @@ export interface Scope {
22
declaresType(name: string): boolean
23
declareTemporary(prefix?: string): namedTypes.Identifier;
24
injectTemporary(identifier?: namedTypes.Identifier, init?: ExpressionKind | null): namedTypes.Identifier;
25
+ markAsStale(): void;
26
scan(force?: boolean): void;
27
getBindings(): ScopeBinding;
28
getTypes(): any;
@@ -168,6 +169,10 @@ export default function scopePlugin(fork: Fork) {
168
169
return identifier;
170
};
171
172
+ Sp.markAsStale = function () {
173
+ this.didScan = false;
174
+ }
175
+
176
Sp.scan = function(force) {
177
if (force || !this.didScan) {
178
for (var name in this.bindings) {
0 commit comments