File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ function runASTAnalysis(
8
8
str ,
9
9
options = Object . create ( null )
10
10
) {
11
+ process . emitWarning (
12
+ 'The runASTAnalysis API is deprecated and will be removed in v8. Please use the AstAnalyser class instead.' ,
13
+ {
14
+ code : 'DeprecationWarning' ,
15
+ detail : 'The runASTAnalysis API is deprecated and will be removed in v8. Please use the AstAnalyser class instead.'
16
+ }
17
+ ) ;
18
+
11
19
const {
12
20
customParser = new JsSourceParser ( ) ,
13
21
customProbes = [ ] ,
@@ -28,6 +36,14 @@ async function runASTAnalysisOnFile(
28
36
pathToFile ,
29
37
options = { }
30
38
) {
39
+ process . emitWarning (
40
+ 'The runASTAnalysisOnFile API is deprecated and will be removed in v8. Please use the AstAnalyser class instead.' ,
41
+ {
42
+ code : 'DeprecationWarning' ,
43
+ detail : 'The runASTAnalysisOnFile API is deprecated and will be removed in v8. Please use the AstAnalyser class instead.'
44
+ }
45
+ ) ;
46
+
31
47
const {
32
48
customProbes = [ ] ,
33
49
customParser = new JsSourceParser ( ) ,
You can’t perform that action at this time.
0 commit comments