MCPcopy Index your code
hub / github.com/nodejs/node / reportObviousModifierErrors

Function reportObviousModifierErrors

test/fixtures/snapshot/typescript.js:87967–87973  ·  view source on GitHub ↗

* true | false: Early return this value from checkGrammarModifiers. * undefined: Need to do full checking on the modifiers.

(node)

Source from the content-addressed store, hash-verified

87965 * undefined: Need to do full checking on the modifiers.
87966 */
87967 function reportObviousModifierErrors(node) {
87968 return !node.modifiers
87969 ? false
87970 : shouldReportBadModifier(node)
87971 ? grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_cannot_appear_here)
87972 : undefined;
87973 }
87974 function shouldReportBadModifier(node) {
87975 switch (node.kind) {
87976 case 172 /* SyntaxKind.GetAccessor */:

Callers 1

checkGrammarModifiersFunction · 0.85

Calls 2

shouldReportBadModifierFunction · 0.85
grammarErrorOnFirstTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…