1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | function insertImport(source, fileToEdit, symbolName, fileName, isDefault = false) {
|
14 | return ast_utils_1.insertImport(source, fileToEdit, symbolName, fileName, isDefault);
|
15 | }
|
16 | exports.insertImport = insertImport;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | function findNodes(node, kind, max = Infinity, recursive = false) {
|
27 | return ast_utils_1.findNodes(node, kind, max, recursive);
|
28 | }
|
29 | exports.findNodes = findNodes;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | function getSourceNodes(sourceFile) {
|
36 | return ast_utils_1.getSourceNodes(sourceFile);
|
37 | }
|
38 | exports.getSourceNodes = getSourceNodes;
|
39 | function findNode(node, kind, text) {
|
40 | return ast_utils_1.findNode(node, kind, text);
|
41 | }
|
42 | exports.findNode = findNode;
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | function insertAfterLastOccurrence(nodes, toInsert, file, fallbackPos, syntaxKind) {
|
57 | return ast_utils_1.insertAfterLastOccurrence(nodes, toInsert, file, fallbackPos, syntaxKind);
|
58 | }
|
59 | exports.insertAfterLastOccurrence = insertAfterLastOccurrence;
|
60 | function getContentOfKeyLiteral(_source, node) {
|
61 | return ast_utils_1.getContentOfKeyLiteral(_source, node);
|
62 | }
|
63 | exports.getContentOfKeyLiteral = getContentOfKeyLiteral;
|
64 | function getDecoratorMetadata(source, identifier, module) {
|
65 | return ast_utils_1.getDecoratorMetadata(source, identifier, module);
|
66 | }
|
67 | exports.getDecoratorMetadata = getDecoratorMetadata;
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | function getFirstNgModuleName(source) {
|
75 | return ast_utils_1.getFirstNgModuleName(source);
|
76 | }
|
77 | exports.getFirstNgModuleName = getFirstNgModuleName;
|
78 | function getMetadataField(node, metadataField) {
|
79 | return ast_utils_1.getMetadataField(node, metadataField);
|
80 | }
|
81 | exports.getMetadataField = getMetadataField;
|
82 | function addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbolName, importPath = null) {
|
83 | return ast_utils_1.addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbolName, importPath);
|
84 | }
|
85 | exports.addSymbolToNgModuleMetadata = addSymbolToNgModuleMetadata;
|
86 |
|
87 |
|
88 |
|
89 |
|
90 | function addDeclarationToModule(source, modulePath, classifiedName, importPath) {
|
91 | return ast_utils_1.addDeclarationToModule(source, modulePath, classifiedName, importPath);
|
92 | }
|
93 | exports.addDeclarationToModule = addDeclarationToModule;
|
94 |
|
95 |
|
96 |
|
97 | function addImportToModule(source, modulePath, classifiedName, importPath) {
|
98 | return ast_utils_1.addImportToModule(source, modulePath, classifiedName, importPath);
|
99 | }
|
100 | exports.addImportToModule = addImportToModule;
|
101 |
|
102 |
|
103 |
|
104 | function addProviderToModule(source, modulePath, classifiedName, importPath) {
|
105 | return ast_utils_1.addProviderToModule(source, modulePath, classifiedName, importPath);
|
106 | }
|
107 | exports.addProviderToModule = addProviderToModule;
|
108 |
|
109 |
|
110 |
|
111 | function addExportToModule(source, modulePath, classifiedName, importPath) {
|
112 | return ast_utils_1.addExportToModule(source, modulePath, classifiedName, importPath);
|
113 | }
|
114 | exports.addExportToModule = addExportToModule;
|
115 |
|
116 |
|
117 |
|
118 | function addBootstrapToModule(source, modulePath, classifiedName, importPath) {
|
119 | return ast_utils_1.addBootstrapToModule(source, modulePath, classifiedName, importPath);
|
120 | }
|
121 | exports.addBootstrapToModule = addBootstrapToModule;
|
122 |
|
123 |
|
124 |
|
125 | function addEntryComponentToModule(source, modulePath, classifiedName, importPath) {
|
126 | return ast_utils_1.addEntryComponentToModule(source, modulePath, classifiedName, importPath);
|
127 | }
|
128 | exports.addEntryComponentToModule = addEntryComponentToModule;
|
129 |
|
130 |
|
131 |
|
132 | function isImported(source, classifiedName, importPath) {
|
133 | return ast_utils_1.isImported(source, classifiedName, importPath);
|
134 | }
|
135 | exports.isImported = isImported;
|
136 |
|
137 |
|
138 |
|
139 | function getRouterModuleDeclaration(source) {
|
140 | return ast_utils_1.getRouterModuleDeclaration(source);
|
141 | }
|
142 | exports.getRouterModuleDeclaration = getRouterModuleDeclaration;
|
143 |
|
144 |
|
145 |
|
146 | function addRouteDeclarationToModule(source, fileToAdd, routeLiteral) {
|
147 | return ast_utils_1.addRouteDeclarationToModule(source, fileToAdd, routeLiteral);
|
148 | }
|
149 | exports.addRouteDeclarationToModule = addRouteDeclarationToModule;
|
150 |
|
\ | No newline at end of file |