MCPcopy
hub / github.com/prettier/prettier / normalizeAngularLetDeclaration

Function normalizeAngularLetDeclaration

src/language-html/parse/postprocess.js:101–117  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

99}
100
101function normalizeAngularLetDeclaration(node) {
102 if (node.kind !== "letDeclaration") {
103 return;
104 }
105
106 // Similar to `VariableDeclarator` in estree
107 node.kind = "angularLetDeclaration";
108 node.id = node.name;
109 node.init = {
110 kind: "angularLetDeclarationInitializer",
111 sourceSpan: new ParseSourceSpan(node.valueSpan.start, node.valueSpan.end),
112 value: node.value,
113 };
114
115 delete node.name;
116 delete node.value;
117}
118
119function normalizeAngularIcuExpression(node) {
120 if (node.kind === "expansion") {

Callers 1

postprocessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…