1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.allTsdocMessageIdsSet = exports.allTsdocMessageIds = exports.TSDocMessageId = void 0;
|
4 | /**
|
5 | * Unique identifiers for messages reported by the TSDoc parser.
|
6 | *
|
7 | * @remarks
|
8 | *
|
9 | * These strings are possible values for the {@link ParserMessage.messageId} property.
|
10 | * These identifiers can be used to suppress or configure the reporting of individual messages.
|
11 | * They are also useful when searching for help about a particular error.
|
12 | *
|
13 | * @public
|
14 | */
|
15 | var TSDocMessageId;
|
16 | (function (TSDocMessageId) {
|
17 | /**
|
18 | * File not found
|
19 | * @remarks
|
20 | * Reported by the `@microsoft/tsdoc-config` package when it failed to find a `tsdoc.json` file.
|
21 | */
|
22 | TSDocMessageId["ConfigFileNotFound"] = "tsdoc-config-file-not-found";
|
23 | /**
|
24 | * Error parsing JSON input: ___
|
25 | * @remarks
|
26 | * Reported by the `@microsoft/tsdoc-config` package when the `tsdoc.json` file has invalid JSON syntax.
|
27 | */
|
28 | TSDocMessageId["ConfigInvalidJson"] = "tsdoc-config-invalid-json";
|
29 | /**
|
30 | * Unsupported JSON "$schema" value
|
31 | * @remarks
|
32 | * Reported by the `@microsoft/tsdoc-config` package when the file format is not supported.
|
33 | */
|
34 | TSDocMessageId["ConfigFileUnsupportedSchema"] = "tsdoc-config-unsupported-schema";
|
35 | /**
|
36 | * Error loading config file: ___
|
37 | * @remarks
|
38 | * Reported by the `@microsoft/tsdoc-config` package when the config file doesn't conform to its schema.
|
39 | */
|
40 | TSDocMessageId["ConfigFileSchemaError"] = "tsdoc-config-schema-error";
|
41 | /**
|
42 | * Circular reference encountered for "extends" field of "___"
|
43 | * @remarks
|
44 | * Reported by the `@microsoft/tsdoc-config` package when the "extends" field creates a chain of references
|
45 | * that causes a file to indirectly extend itself.
|
46 | */
|
47 | TSDocMessageId["ConfigFileCyclicExtends"] = "tsdoc-config-cyclic-extends";
|
48 | /**
|
49 | * Unable to resolve "extends" reference to "___"
|
50 | * @remarks
|
51 | * Reported by the `@microsoft/tsdoc-config` package when module resolution fails for the "extends" field.
|
52 | */
|
53 | TSDocMessageId["ConfigFileUnresolvedExtends"] = "tsdoc-config-unresolved-extends";
|
54 | /**
|
55 | * The "supportForTags" field refers to an undefined tag "___".
|
56 | * @remarks
|
57 | * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
|
58 | */
|
59 | TSDocMessageId["ConfigFileUndefinedTag"] = "tsdoc-config-undefined-tag";
|
60 | /**
|
61 | * The "tagDefinitions" field specifies more than one tag with the name "___".
|
62 | * @remarks
|
63 | * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
|
64 | */
|
65 | TSDocMessageId["ConfigFileDuplicateTagName"] = "tsdoc-config-duplicate-tag-name";
|
66 | /**
|
67 | * A TSDoc tag name must start with a letter and contain only letters and numbers.
|
68 | * @remarks
|
69 | * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
|
70 | */
|
71 | TSDocMessageId["ConfigFileInvalidTagName"] = "tsdoc-config-invalid-tag-name";
|
72 | /**
|
73 | * Expecting a `/**` comment.
|
74 | * Unexpected end of input.
|
75 | */
|
76 | TSDocMessageId["CommentNotFound"] = "tsdoc-comment-not-found";
|
77 | /**
|
78 | * Expecting a leading `/**`
|
79 | */
|
80 | TSDocMessageId["CommentOpeningDelimiterSyntax"] = "tsdoc-comment-missing-opening-delimiter";
|
81 | /**
|
82 | * Unexpected end of input.
|
83 | */
|
84 | TSDocMessageId["CommentMissingClosingDelimiter"] = "tsdoc-comment-missing-closing-delimiter";
|
85 | /**
|
86 | * A doc comment cannot have more than one `@inheritDoc` tag
|
87 | */
|
88 | TSDocMessageId["ExtraInheritDocTag"] = "tsdoc-extra-inheritdoc-tag";
|
89 | /**
|
90 | * The `}` character should be escaped using a backslash to avoid confusion with a TSDoc inline tag.
|
91 | */
|
92 | TSDocMessageId["EscapeRightBrace"] = "tsdoc-escape-right-brace";
|
93 | /**
|
94 | * The `>` character should be escaped using a backslash to avoid confusion with an HTML tag.
|
95 | */
|
96 | TSDocMessageId["EscapeGreaterThan"] = "tsdoc-escape-greater-than";
|
97 | /**
|
98 | * The ___ block must include a deprecation message, e.g. describing the recommended alternative.
|
99 | */
|
100 | TSDocMessageId["MissingDeprecationMessage"] = "tsdoc-missing-deprecation-message";
|
101 | /**
|
102 | * A ___ block must not be used, because that content is provided by the `@inheritDoc` tag.
|
103 | */
|
104 | TSDocMessageId["InheritDocIncompatibleTag"] = "tsdoc-inheritdoc-incompatible-tag";
|
105 | /**
|
106 | * The summary section must not have any content, because that content is provided by the `@inheritDoc` tag.
|
107 | */
|
108 | TSDocMessageId["InheritDocIncompatibleSummary"] = "tsdoc-inheritdoc-incompatible-summary";
|
109 | /**
|
110 | * The TSDoc tag ___ is an inline tag; it must be enclosed in `{ }` braces.
|
111 | */
|
112 | TSDocMessageId["InlineTagMissingBraces"] = "tsdoc-inline-tag-missing-braces";
|
113 | /**
|
114 | * The TSDoc tag ___ is not an inline tag; it must not be enclosed in `{ }` braces.
|
115 | */
|
116 | TSDocMessageId["TagShouldNotHaveBraces"] = "tsdoc-tag-should-not-have-braces";
|
117 | /**
|
118 | * The TSDoc tag ___ is not supported by this tool.
|
119 | */
|
120 | TSDocMessageId["UnsupportedTag"] = "tsdoc-unsupported-tag";
|
121 | /**
|
122 | * The TSDoc tag ___ is not defined in this configuration.
|
123 | */
|
124 | TSDocMessageId["UndefinedTag"] = "tsdoc-undefined-tag";
|
125 | /**
|
126 | * The `@param` block should not include a JSDoc-style `{type}`.
|
127 | */
|
128 | TSDocMessageId["ParamTagWithInvalidType"] = "tsdoc-param-tag-with-invalid-type";
|
129 | /**
|
130 | * The `@param` block should not include a JSDoc-style optional name; it must not be enclosed in `[ ]` brackets.
|
131 | */
|
132 | TSDocMessageId["ParamTagWithInvalidOptionalName"] = "tsdoc-param-tag-with-invalid-optional-name";
|
133 | /**
|
134 | * The `@param` block should be followed by a parameter name.
|
135 | */
|
136 | TSDocMessageId["ParamTagWithInvalidName"] = "tsdoc-param-tag-with-invalid-name";
|
137 | /**
|
138 | * The `@param` block should be followed by a parameter name and then a hyphen.
|
139 | */
|
140 | TSDocMessageId["ParamTagMissingHyphen"] = "tsdoc-param-tag-missing-hyphen";
|
141 | /**
|
142 | * A backslash must precede another character that is being escaped. OR
|
143 | * A backslash can only be used to escape a punctuation character.
|
144 | */
|
145 | TSDocMessageId["UnnecessaryBackslash"] = "tsdoc-unnecessary-backslash";
|
146 | /**
|
147 | * Expecting a TSDoc tag starting with `@`. OR
|
148 | * Expecting a TSDoc tag starting with `{`.
|
149 | */
|
150 | TSDocMessageId["MissingTag"] = "tsdoc-missing-tag";
|
151 | /**
|
152 | * The `@` character looks like part of a TSDoc tag; use a backslash to escape it.
|
153 | */
|
154 | TSDocMessageId["AtSignInWord"] = "tsdoc-at-sign-in-word";
|
155 | /**
|
156 | * Expecting a TSDoc tag name after `@`; if it is not a tag, use a backslash to escape this character.
|
157 | */
|
158 | TSDocMessageId["AtSignWithoutTagName"] = "tsdoc-at-sign-without-tag-name";
|
159 | /**
|
160 | * Expecting a TSDoc tag starting with `{@`. OR
|
161 | * Expecting a TSDoc inline tag name after the `{@` characters.
|
162 | */
|
163 | TSDocMessageId["MalformedInlineTag"] = "tsdoc-malformed-inline-tag";
|
164 | /**
|
165 | * The token ___ looks like a TSDoc tag but contains an invalid character ___; if it is not a tag,
|
166 | * use a backslash to escape the `@`.
|
167 | */
|
168 | TSDocMessageId["CharactersAfterBlockTag"] = "tsdoc-characters-after-block-tag";
|
169 | /**
|
170 | * A TSDoc tag name must start with a letter and contain only letters and numbers.
|
171 | */
|
172 | TSDocMessageId["MalformedTagName"] = "tsdoc-malformed-tag-name";
|
173 | /**
|
174 | * The character ___ cannot appear after the TSDoc tag name; expecting a space.
|
175 | */
|
176 | TSDocMessageId["CharactersAfterInlineTag"] = "tsdoc-characters-after-inline-tag";
|
177 | /**
|
178 | * The TSDoc inline tag name is missing its closing `}`.
|
179 | */
|
180 | TSDocMessageId["InlineTagMissingRightBrace"] = "tsdoc-inline-tag-missing-right-brace";
|
181 | /**
|
182 | * The `{` character must be escaped with a backslash when used inside a TSDoc inline tag.
|
183 | */
|
184 | TSDocMessageId["InlineTagUnescapedBrace"] = "tsdoc-inline-tag-unescaped-brace";
|
185 | /**
|
186 | * Unexpected character after declaration reference.
|
187 | */
|
188 | TSDocMessageId["InheritDocTagSyntax"] = "tsdoc-inheritdoc-tag-syntax";
|
189 | /**
|
190 | * The `@link` tag content is missing.
|
191 | */
|
192 | TSDocMessageId["LinkTagEmpty"] = "tsdoc-link-tag-empty";
|
193 | /**
|
194 | * The ___ character may not be used in the link text without escaping it.
|
195 | */
|
196 | TSDocMessageId["LinkTagUnescapedText"] = "tsdoc-link-tag-unescaped-text";
|
197 | /**
|
198 | * Unexpected character after link destination.
|
199 | */
|
200 | TSDocMessageId["LinkTagDestinationSyntax"] = "tsdoc-link-tag-destination-syntax";
|
201 | /**
|
202 | * The URL cannot be empty. OR
|
203 | * An `@link` URL must begin with a scheme comprised only of letters and numbers followed by `://`. OR
|
204 | * An `@link` URL must have at least one character after `://`.
|
205 | */
|
206 | TSDocMessageId["LinkTagInvalidUrl"] = "tsdoc-link-tag-invalid-url";
|
207 | /**
|
208 | * The declaration reference appears to contain a package name or import path, but it is missing the `#` delimiter.
|
209 | */
|
210 | TSDocMessageId["ReferenceMissingHash"] = "tsdoc-reference-missing-hash";
|
211 | /**
|
212 | * The hash character must be preceded by a package name or import path.
|
213 | */
|
214 | TSDocMessageId["ReferenceHashSyntax"] = "tsdoc-reference-hash-syntax";
|
215 | /**
|
216 | * The package name cannot be an empty string. OR
|
217 | * The package name ___ is not a valid package name.
|
218 | */
|
219 | TSDocMessageId["ReferenceMalformedPackageName"] = "tsdoc-reference-malformed-package-name";
|
220 | /**
|
221 | * An import path must not contain `//`. OR
|
222 | * An import path must not end with `/`. OR
|
223 | * An import path must not start with `/` unless prefixed by a package name.
|
224 | */
|
225 | TSDocMessageId["ReferenceMalformedImportPath"] = "tsdoc-reference-malformed-import-path";
|
226 | /**
|
227 | * Expecting a declaration reference.
|
228 | */
|
229 | TSDocMessageId["MissingReference"] = "tsdoc-missing-reference";
|
230 | /**
|
231 | * Expecting a period before the next component of a declaration reference
|
232 | */
|
233 | TSDocMessageId["ReferenceMissingDot"] = "tsdoc-reference-missing-dot";
|
234 | /**
|
235 | * Syntax error in declaration reference: the member selector must be enclosed in parentheses.
|
236 | */
|
237 | TSDocMessageId["ReferenceSelectorMissingParens"] = "tsdoc-reference-selector-missing-parens";
|
238 | /**
|
239 | * Expecting a colon after the identifier because the expression is in parentheses.
|
240 | */
|
241 | TSDocMessageId["ReferenceMissingColon"] = "tsdoc-reference-missing-colon";
|
242 | /**
|
243 | * Expecting a matching right parenthesis.
|
244 | */
|
245 | TSDocMessageId["ReferenceMissingRightParen"] = "tsdoc-reference-missing-right-paren";
|
246 | /**
|
247 | * Missing declaration reference in symbol reference
|
248 | */
|
249 | TSDocMessageId["ReferenceSymbolSyntax"] = "tsdoc-reference-symbol-syntax";
|
250 | /**
|
251 | * Missing closing square bracket for symbol reference
|
252 | */
|
253 | TSDocMessageId["ReferenceMissingRightBracket"] = "tsdoc-reference-missing-right-bracket";
|
254 | /**
|
255 | * Unexpected end of input inside quoted member identifier.
|
256 | */
|
257 | TSDocMessageId["ReferenceMissingQuote"] = "tsdoc-reference-missing-quote";
|
258 | /**
|
259 | * The quoted identifier cannot be empty.
|
260 | */
|
261 | TSDocMessageId["ReferenceEmptyIdentifier"] = "tsdoc-reference-empty-identifier";
|
262 | /**
|
263 | * Syntax error in declaration reference: expecting a member identifier.
|
264 | */
|
265 | TSDocMessageId["ReferenceMissingIdentifier"] = "tsdoc-reference-missing-identifier";
|
266 | /**
|
267 | * The identifier cannot be an empty string. OR
|
268 | * The identifier cannot non-word characters. OR
|
269 | * The identifier must not start with a number. OR
|
270 | * The identifier ___ must be quoted because it is a TSDoc system selector name.
|
271 | */
|
272 | TSDocMessageId["ReferenceUnquotedIdentifier"] = "tsdoc-reference-unquoted-identifier";
|
273 | /**
|
274 | * Expecting a selector label after the colon.
|
275 | */
|
276 | TSDocMessageId["ReferenceMissingLabel"] = "tsdoc-reference-missing-label";
|
277 | /**
|
278 | * The selector cannot be an empty string. OR
|
279 | * If the selector begins with a number, it must be a positive integer value. OR
|
280 | * A label selector must be comprised of upper case letters, numbers, and underscores
|
281 | * and must not start with a number. OR
|
282 | * The selector ___ is not a recognized TSDoc system selector name.
|
283 | */
|
284 | TSDocMessageId["ReferenceSelectorSyntax"] = "tsdoc-reference-selector-syntax";
|
285 | /**
|
286 | * Expecting an attribute or `>` or `/>`.
|
287 | */
|
288 | TSDocMessageId["HtmlTagMissingGreaterThan"] = "tsdoc-html-tag-missing-greater-than";
|
289 | /**
|
290 | * Expecting `=` after HTML attribute name.
|
291 | */
|
292 | TSDocMessageId["HtmlTagMissingEquals"] = "tsdoc-html-tag-missing-equals";
|
293 | /**
|
294 | * Expecting an HTML string starting with a single-quote or double-quote character.
|
295 | */
|
296 | TSDocMessageId["HtmlTagMissingString"] = "tsdoc-html-tag-missing-string";
|
297 | /**
|
298 | * The HTML string is missing its closing quote.
|
299 | */
|
300 | TSDocMessageId["HtmlStringMissingQuote"] = "tsdoc-html-string-missing-quote";
|
301 | /**
|
302 | * The next character after a closing quote must be spacing or punctuation.
|
303 | */
|
304 | TSDocMessageId["TextAfterHtmlString"] = "tsdoc-text-after-html-string";
|
305 | /**
|
306 | * Expecting an HTML tag starting with `</`.
|
307 | */
|
308 | TSDocMessageId["MissingHtmlEndTag"] = "tsdoc-missing-html-end-tag";
|
309 | /**
|
310 | * A space is not allowed here. OR
|
311 | * Expecting an HTML name. OR
|
312 | * An HTML name must be a sequence of letters separated by hyphens.
|
313 | */
|
314 | TSDocMessageId["MalformedHtmlName"] = "tsdoc-malformed-html-name";
|
315 | /**
|
316 | * This HTML element name is not defined by your TSDoc configuration.
|
317 | */
|
318 | TSDocMessageId["UnsupportedHtmlElementName"] = "tsdoc-unsupported-html-name";
|
319 | /**
|
320 | * The opening backtick for a code fence must appear at the start of the line.
|
321 | */
|
322 | TSDocMessageId["CodeFenceOpeningIndent"] = "tsdoc-code-fence-opening-indent";
|
323 | /**
|
324 | * The language specifier cannot contain backtick characters.
|
325 | */
|
326 | TSDocMessageId["CodeFenceSpecifierSyntax"] = "tsdoc-code-fence-specifier-syntax";
|
327 | /**
|
328 | * The closing delimiter for a code fence must not be indented.
|
329 | */
|
330 | TSDocMessageId["CodeFenceClosingIndent"] = "tsdoc-code-fence-closing-indent";
|
331 | /**
|
332 | * Missing closing delimiter.
|
333 | */
|
334 | TSDocMessageId["CodeFenceMissingDelimiter"] = "tsdoc-code-fence-missing-delimiter";
|
335 | /**
|
336 | * Unexpected characters after closing delimiter for code fence.
|
337 | */
|
338 | TSDocMessageId["CodeFenceClosingSyntax"] = "tsdoc-code-fence-closing-syntax";
|
339 | /**
|
340 | * A code span must contain at least one character between the backticks.
|
341 | */
|
342 | TSDocMessageId["CodeSpanEmpty"] = "tsdoc-code-span-empty";
|
343 | /**
|
344 | * The code span is missing its closing backtick.
|
345 | */
|
346 | TSDocMessageId["CodeSpanMissingDelimiter"] = "tsdoc-code-span-missing-delimiter";
|
347 | })(TSDocMessageId = exports.TSDocMessageId || (exports.TSDocMessageId = {}));
|
348 | // Exposed via TSDocConfiguration.allTsdocMessageIds()
|
349 | exports.allTsdocMessageIds = [
|
350 | // To make comparisons easy, keep these in the same order as the enum above:
|
351 | 'tsdoc-config-file-not-found',
|
352 | 'tsdoc-config-invalid-json',
|
353 | 'tsdoc-config-unsupported-schema',
|
354 | 'tsdoc-config-schema-error',
|
355 | 'tsdoc-config-cyclic-extends',
|
356 | 'tsdoc-config-unresolved-extends',
|
357 | 'tsdoc-config-undefined-tag',
|
358 | 'tsdoc-config-duplicate-tag-name',
|
359 | 'tsdoc-config-invalid-tag-name',
|
360 | 'tsdoc-comment-not-found',
|
361 | 'tsdoc-comment-missing-opening-delimiter',
|
362 | 'tsdoc-comment-missing-closing-delimiter',
|
363 | 'tsdoc-extra-inheritdoc-tag',
|
364 | 'tsdoc-escape-right-brace',
|
365 | 'tsdoc-escape-greater-than',
|
366 | 'tsdoc-missing-deprecation-message',
|
367 | 'tsdoc-inheritdoc-incompatible-tag',
|
368 | 'tsdoc-inheritdoc-incompatible-summary',
|
369 | 'tsdoc-inline-tag-missing-braces',
|
370 | 'tsdoc-tag-should-not-have-braces',
|
371 | 'tsdoc-unsupported-tag',
|
372 | 'tsdoc-undefined-tag',
|
373 | 'tsdoc-param-tag-with-invalid-type',
|
374 | 'tsdoc-param-tag-with-invalid-optional-name',
|
375 | 'tsdoc-param-tag-with-invalid-name',
|
376 | 'tsdoc-param-tag-missing-hyphen',
|
377 | 'tsdoc-unnecessary-backslash',
|
378 | 'tsdoc-missing-tag',
|
379 | 'tsdoc-at-sign-in-word',
|
380 | 'tsdoc-at-sign-without-tag-name',
|
381 | 'tsdoc-malformed-inline-tag',
|
382 | 'tsdoc-characters-after-block-tag',
|
383 | 'tsdoc-malformed-tag-name',
|
384 | 'tsdoc-characters-after-inline-tag',
|
385 | 'tsdoc-inline-tag-missing-right-brace',
|
386 | 'tsdoc-inline-tag-unescaped-brace',
|
387 | 'tsdoc-inheritdoc-tag-syntax',
|
388 | 'tsdoc-link-tag-empty',
|
389 | 'tsdoc-link-tag-unescaped-text',
|
390 | 'tsdoc-link-tag-destination-syntax',
|
391 | 'tsdoc-link-tag-invalid-url',
|
392 | 'tsdoc-reference-missing-hash',
|
393 | 'tsdoc-reference-hash-syntax',
|
394 | 'tsdoc-reference-malformed-package-name',
|
395 | 'tsdoc-reference-malformed-import-path',
|
396 | 'tsdoc-missing-reference',
|
397 | 'tsdoc-reference-missing-dot',
|
398 | 'tsdoc-reference-selector-missing-parens',
|
399 | 'tsdoc-reference-missing-colon',
|
400 | 'tsdoc-reference-missing-right-paren',
|
401 | 'tsdoc-reference-symbol-syntax',
|
402 | 'tsdoc-reference-missing-right-bracket',
|
403 | 'tsdoc-reference-missing-quote',
|
404 | 'tsdoc-reference-empty-identifier',
|
405 | 'tsdoc-reference-missing-identifier',
|
406 | 'tsdoc-reference-unquoted-identifier',
|
407 | 'tsdoc-reference-missing-label',
|
408 | 'tsdoc-reference-selector-syntax',
|
409 | 'tsdoc-html-tag-missing-greater-than',
|
410 | 'tsdoc-html-tag-missing-equals',
|
411 | 'tsdoc-html-tag-missing-string',
|
412 | 'tsdoc-html-string-missing-quote',
|
413 | 'tsdoc-text-after-html-string',
|
414 | 'tsdoc-missing-html-end-tag',
|
415 | 'tsdoc-malformed-html-name',
|
416 | 'tsdoc-code-fence-opening-indent',
|
417 | 'tsdoc-code-fence-specifier-syntax',
|
418 | 'tsdoc-code-fence-closing-indent',
|
419 | 'tsdoc-code-fence-missing-delimiter',
|
420 | 'tsdoc-code-fence-closing-syntax',
|
421 | 'tsdoc-code-span-empty',
|
422 | 'tsdoc-code-span-missing-delimiter'
|
423 | ];
|
424 | exports.allTsdocMessageIds.sort();
|
425 | exports.allTsdocMessageIdsSet = new Set(exports.allTsdocMessageIds);
|
426 | //# sourceMappingURL=TSDocMessageId.js.map |
\ | No newline at end of file |