MCPcopy
hub / github.com/prettier/prettier / handleOwnLineComment

Function handleOwnLineComment

src/language-js/comments/handle-comments.js:68–93  ·  view source on GitHub ↗

* @param {CommentContext} context * @returns {boolean}

(context)

Source from the content-addressed store, hash-verified

66 * @returns {boolean}
67 */
68function handleOwnLineComment(context) {
69 return [
70 handleCommentInEmptyParens,
71 handleIgnoreComments,
72 handleConditionalExpressionComments,
73 handleLastFunctionParameterComments,
74 handleMemberExpressionComments,
75 handleIfStatementComments,
76 handleWhileLikeComments,
77 handleTryStatementComments,
78 handleClassComments,
79 handleForXStatementComments,
80 handleUnionTypeComments,
81 handleMatchOrPatternComments,
82 handleOnlyComments,
83 handleModuleSpecifiersComments,
84 handleAssignmentPatternComments,
85 handleMethodNameComments,
86 handleLabeledStatementComments,
87 handleNestedConditionalExpressionComments,
88 handleCommentsInDestructuringPattern,
89 handleTSMappedTypeComments,
90 handleBinaryCastExpressionComment,
91 handleUnionTypeLeadingComments,
92 ].some((fn) => fn(context));
93}
94
95/**
96 * @param {CommentContext} context

Callers 1

attachCommentsFunction · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…