UNPKG
@ui5/linter
Version:
latest (1.23.1)
1.23.1
1.23.0
1.22.0
1.21.2
1.21.1
1.21.0
1.20.18
1.20.17
1.20.16
1.20.15
1.20.14
1.20.13
1.20.12
1.20.11
1.20.10
1.20.9
1.20.8
1.20.7
1.20.6
1.20.5
1.20.4
1.20.3
1.20.2
1.20.1
1.20.0
1.19.0
1.18.1
1.18.0
1.17.0
1.16.1
1.16.0
1.15.0
1.14.0
1.13.1
1.13.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.1
1.6.0
1.5.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
A static code analysis tool for UI5
github.com/UI5/linter
UI5/linter
@ui5/linter
/
lib
/
linter
/
ui5Types
/
amdTranspiler
/
replaceNodeInParent.d.ts
10 lines
(9 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
ts from
"typescript"
;
export
interface NodeReplacement { original: ts.Node; substitute: ts.Node; }
/** * Replaces a node in its parent with another node */
export
default
function
(parent: ts.Node, replacement: NodeReplacement, nodeFactory: ts.NodeFactory)
: ts.Node;