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

Function checkGrammarForDisallowedTrailingComma

test/fixtures/snapshot/typescript.js:88029–88035  ·  view source on GitHub ↗
(list, diag)

Source from the content-addressed store, hash-verified

88027 return grammarErrorOnNode(asyncModifier, ts.Diagnostics._0_modifier_cannot_be_used_here, "async");
88028 }
88029 function checkGrammarForDisallowedTrailingComma(list, diag) {
88030 if (diag === void 0) { diag = ts.Diagnostics.Trailing_comma_not_allowed; }
88031 if (list && list.hasTrailingComma) {
88032 return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag);
88033 }
88034 return false;
88035 }
88036 function checkGrammarTypeParameterList(typeParameters, file) {
88037 if (typeParameters && typeParameters.length === 0) {
88038 var start = typeParameters.pos - "<".length;

Calls 1

grammarErrorAtPosFunction · 0.85

Tested by

no test coverage detected