MCPcopy Index your code
hub / github.com/angular/angular / wrapForTypeChecker

Method wrapForTypeChecker

packages/compiler/src/typecheck/ops/codegen.ts:84–88  ·  view source on GitHub ↗

* Wraps the expression in parenthesis such that inserted * span comments become attached to the proper node.

()

Source from the content-addressed store, hash-verified

82 * span comments become attached to the proper node.
83 */
84 wrapForTypeChecker(): this {
85 this.source = `(${this.print()})`;
86 this.spanComment = this.identifierComment = this.ignoreComment = null;
87 return this;
88 }
89
90 /**
91 * Tags the expression with an identifier.

Callers 15

visitUnaryMethod · 0.95
visitChainMethod · 0.95
visitBinaryMethod · 0.80
visitConditionalMethod · 0.80
visitInterpolationMethod · 0.80
visitKeyedReadMethod · 0.80
visitLiteralMapMethod · 0.80
visitNonNullAssertMethod · 0.80
visitPrefixNotMethod · 0.80
visitTypeofExpressionMethod · 0.80
visitVoidExpressionMethod · 0.80

Calls 1

printMethod · 0.95

Tested by

no test coverage detected