File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
src/processTargets/modifiers Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import getModifierStage from "../getModifierStage";
5
5
import { ModifierStage } from "../PipelineStages.types" ;
6
6
7
7
/**
8
- * Runs {@link ModifyIfUntypedModifier.modifier} if the target is lacking an explicit modifier.
8
+ * Runs {@link ModifyIfUntypedModifier.modifier} if the target has no explicit
9
+ * scope type, ie if {@link Target.hasExplicitScopeType} is `false`.
9
10
*/
10
11
export default class ModifyIfUntypedStage implements ModifierStage {
11
12
private nestedStage_ ?: ModifierStage ;
@@ -20,7 +21,7 @@ export default class ModifyIfUntypedStage implements ModifierStage {
20
21
21
22
/**
22
23
* This target is lacking an explicit scope type and should use inference/upgrade when needed.
23
- * See {@link UntypedTarget } for more info
24
+ * See {@link Target.hasExplicitScopeType } for more info
24
25
*/
25
26
return this . nestedStage
26
27
. run ( context , target )
Original file line number Diff line number Diff line change 1
1
import ModifyIfUntypedStage from "./ModifyIfUntypedStage" ;
2
2
3
+ /**
4
+ * Expands the given target to the nearest containing surrounding pair if the
5
+ * target has no explicit scope type, ie if {@link Target.hasExplicitScopeType}
6
+ * is `false`.
7
+ */
3
8
export const containingSurroundingPairIfUntypedStage = new ModifyIfUntypedStage (
4
9
{
5
10
type : "modifyIfUntyped" ,
@@ -10,6 +15,10 @@ export const containingSurroundingPairIfUntypedStage = new ModifyIfUntypedStage(
10
15
}
11
16
) ;
12
17
18
+ /**
19
+ * Expands the given target to the nearest containing line if the target has no
20
+ * explicit scope type, ie if {@link Target.hasExplicitScopeType} is `false`.
21
+ */
13
22
export const containingLineIfUntypedStage = new ModifyIfUntypedStage ( {
14
23
type : "modifyIfUntyped" ,
15
24
modifier : {
@@ -18,6 +27,10 @@ export const containingLineIfUntypedStage = new ModifyIfUntypedStage({
18
27
} ,
19
28
} ) ;
20
29
30
+ /**
31
+ * Expands the given target to the nearest containing token if the target has no
32
+ * explicit scope type, ie if {@link Target.hasExplicitScopeType} is `false`.
33
+ */
21
34
export const containingTokenIfUntypedStage = new ModifyIfUntypedStage ( {
22
35
type : "modifyIfUntyped" ,
23
36
modifier : {
You can’t perform that action at this time.
0 commit comments