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

Method print

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

* Converts the node's current state to a string. * @param ignoreComments Whether the comments associated with the expression should be skipped.

(ignoreComments = false)

Source from the content-addressed store, hash-verified

38 * @param ignoreComments Whether the comments associated with the expression should be skipped.
39 */
40 print(ignoreComments = false): string {
41 if (ignoreComments) {
42 return this.source;
43 }
44
45 return (
46 this.source +
47 this.formatComment(this.identifierComment) +
48 this.formatComment(this.ignoreComment) +
49 this.formatComment(this.spanComment)
50 );
51 }
52
53 /**
54 * Adds a synthetic comment to the expression that represents the parse span of the provided node.

Callers 15

visitLiteralMapMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
generateGuardMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
extractFieldValueFunction · 0.95
extractFieldValueSignalFunction · 0.95
executeMethod · 0.95

Calls 1

formatCommentMethod · 0.95

Tested by

no test coverage detected