@@ -26,6 +26,8 @@ interface ResolvedAppConfig {
26
26
* @param tree File tree of the project.
27
27
* @param filePath Path of the file in which to check.
28
28
* @param className Class name of the module to search for.
29
+ * @deprecated Private utility that will be removed. Use `addRootImport` or `addRootProvider` from
30
+ * `@schematics/angular/utility` instead.
29
31
*/
30
32
export function importsProvidersFrom ( tree : Tree , filePath : string , className : string ) : boolean {
31
33
const sourceFile = createSourceFile ( tree , filePath ) ;
@@ -43,6 +45,8 @@ export function importsProvidersFrom(tree: Tree, filePath: string, className: st
43
45
* @param tree File tree of the project.
44
46
* @param filePath Path of the file in which to check.
45
47
* @param functionName Name of the function to search for.
48
+ * @deprecated Private utility that will be removed. Use `addRootImport` or `addRootProvider` from
49
+ * `@schematics/angular/utility` instead.
46
50
*/
47
51
export function callsProvidersFunction (
48
52
tree : Tree ,
@@ -68,6 +72,8 @@ export function callsProvidersFunction(
68
72
* @param filePath Path to the file that should be updated.
69
73
* @param moduleName Name of the module that should be imported.
70
74
* @param modulePath Path from which to import the module.
75
+ * @deprecated Private utility that will be removed. Use `addRootImport` or `addRootProvider` from
76
+ * `@schematics/angular/utility` instead.
71
77
*/
72
78
export function addModuleImportToStandaloneBootstrap (
73
79
tree : Tree ,
@@ -164,6 +170,8 @@ export function addModuleImportToStandaloneBootstrap(
164
170
* @param importPath Path from which to import the function.
165
171
* @param args Arguments to use when calling the function.
166
172
* @returns The file path that the provider was added to.
173
+ * @deprecated Private utility that will be removed. Use `addRootImport` or `addRootProvider` from
174
+ * `@schematics/angular/utility` instead.
167
175
*/
168
176
export function addFunctionalProvidersToStandaloneBootstrap (
169
177
tree : Tree ,
@@ -240,7 +248,11 @@ export function addFunctionalProvidersToStandaloneBootstrap(
240
248
return configFilePath ;
241
249
}
242
250
243
- /** Finds the call to `bootstrapApplication` within a file. */
251
+ /**
252
+ * Finds the call to `bootstrapApplication` within a file.
253
+ * @deprecated Private utility that will be removed. Use `addRootImport` or `addRootProvider` from
254
+ * `@schematics/angular/utility` instead.
255
+ */
244
256
export function findBootstrapApplicationCall ( sourceFile : ts . SourceFile ) : ts . CallExpression | null {
245
257
const localName = findImportLocalName (
246
258
sourceFile ,
0 commit comments