Home
last modified time | relevance | path

Searched +full:valid +full:- +full:jsdoc (Results 1 – 25 of 54) sorted by relevance

123

/third_party/typescript/src/services/
DjsDoc.ts2 namespace ts.JsDoc {
91 // from Array<T> - Array<string> and Array<number>
102 function getCommentHavingNodes(declaration: Declaration): readonly (JSDoc | JSDocTag)[] {
202 const jsdoc = tag.parent; constant
203 const fn = jsdoc.parent;
210 …if (jsdoc.tags!.some(t => t !== tag && isJSDocParameterTag(t) && isIdentifier(t.name) && t.name.es…
232 * Checks if position points to a valid position to add JSDoc comments, and if so,
234 * Valid positions are
235 * - outside of comments, statements, and expressions, and
236 * - preceding a:
[all …]
Dcompletions.ts21 * When the completion item is an auto-import suggestion, the source
24 * generate for an auto-import.
83 * Map from symbol id -> SymbolOriginInfo.
197 … // If the current position is a jsDoc tag name, only tag names should be provided for completion
198 return jsdocCompletionInfo(JsDoc.getJSDocTagNameCompletions());
200 … // If the current position is a jsDoc tag, only tags should be provided for completion
201 return jsdocCompletionInfo(JsDoc.getJSDocTagCompletions());
203 … return jsdocCompletionInfo(JsDoc.getJSDocParameterNameCompletions(completionData.tag));
237 …mply giving unknown value, the completion will return the tag-name of an associated opening-elemen…
398 …// Somehow there was a global with a non-identifier name. Hopefully someone will complain about ge…
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/
DROADMAP.md14 ### TypeScript-specific
17 | --------------------------------- | :-: | ---------------------------------------------------- |
18 | [`adjacent-overload-signatures`] | ✅ | [`@typescript-eslint/adjacent-overload-signatures`] |
19 | [`ban-ts-ignore`] | ✅ | [`@typescript-eslint/ban-ts-comment`] |
20 | [`ban-types`] | �� | [`@typescript-eslint/ban-types`]<sup>[1]</sup> |
21 | [`invalid-void`] | ✅ | [`@typescript-eslint/no-invalid-void-type`] |
22 | [`member-access`] | ✅ | [`@typescript-eslint/explicit-member-accessibility`] |
23 | [`member-ordering`] | ✅ | [`@typescript-eslint/member-ordering`] |
24 | [`no-any`] | ✅ | [`@typescript-eslint/no-explicit-any`] |
25 | [`no-empty-interface`] | ✅ | [`@typescript-eslint/no-empty-interface`] |
[all …]
/third_party/node/deps/npm/node_modules/fast-json-stable-stringify/
D.eslintrc.yml6 block-scoped-var: 2
7 callback-return: 2
8 dot-notation: 2
10 linebreak-style: [2, unix]
11 new-cap: 2
12 no-console: [2, allow: [warn, error]]
13 no-else-return: 2
14 no-eq-null: 2
15 no-fallthrough: 2
16 no-invalid-this: 2
[all …]
/third_party/node/deps/npm/node_modules/har-validator/node_modules/json-schema-traverse/
D.eslintrc.yml6 block-scoped-var: 2
8 curly: [2, multi-or-nest, consistent]
9 dot-location: [2, property]
10 dot-notation: 2
12 linebreak-style: [2, unix]
13 new-cap: 2
14 no-console: [2, allow: [warn, error]]
15 no-else-return: 2
16 no-eq-null: 2
17 no-fallthrough: 2
[all …]
/third_party/typescript/src/compiler/
DutilitiesPublic.ts101 return createTextSpan(start, end - start);
120 …xtChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); // eslint-disable-line prefer-const
127 * This function will then merge those changes into a single change range valid between V1 and
156 …// ------------------------------------------------------------------------------------------…
158 // | /----
159 // T1 | /----
160 // | /----
161 // | /----
162 …// ------------------------------------------------------------------------------------------…
168 …// ------------------------------------------------------------------------------------------…
[all …]
DdiagnosticMessages.json150 …"Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.": {
182 …"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Pr…
190 "An async function or method must have a valid awaitable return type.": {
194 …"The return type of an async function must either be a valid promise or must not contain a callabl…
462 "Cannot use imports, exports, or module augmentations when '--module' is 'none'.": {
618 "'export *' does not re-export a default.": {
650 …"Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.":…
654 "Decorators are not valid here.": {
662 …"'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file.…
694 "Export assignment is not supported when '--module' flag is 'system'.": {
[all …]
Dparser.ts8 JSDoc = 1 << 5, enumerator
28 …Constructor || (SourceFileConstructor = objectAllocator.getSourceFileConstructor()))(kind, -1, -1),
29 …Constructor || (IdentifierConstructor = objectAllocator.getIdentifierConstructor()))(kind, -1, -1),
30 … (PrivateIdentifierConstructor = objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1),
31 …new (TokenConstructor || (TokenConstructor = objectAllocator.getTokenConstructor()))(kind, -1, -1),
32 …=> new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, -1, -1),
489 return visitNodes(cbNode, cbNodes, (<JSDoc>node).tags);
582 for (let i = current.length - 1; i >= 0; --i) {
606 …dWorkItem); // By using a stack above and `unshift` here, we emulate a depth-first preorder traver…
675 if (result && result.jsDoc) {
[all …]
Dutilities.ts78 … hasTrailingWhitespace: () => !!str.length && isWhiteSpaceLike(str.charCodeAt(str.length - 1)),
161 return node.end - node.pos;
399 …ntifier(nameExpr) && options.ets?.render?.method.indexOf(nameExpr.escapedText.toString()) !== -1) {
465 // last line - return EOF
466 return sourceText.length - 1;
471 // take the start position of the next line - 1 = it should be some line break
472 let pos = lineStarts[lineIndex + 1] - 1;
477 // $ <- end of line for this position should match the start position
479 pos--;
501 // Here, the Type in the Type-Annotation is not-optional (as there is a colon in the source
[all …]
Dtypes.ts31 // allows us to edit files with git-conflict markers in them in a much more pleasant manner.
41 // Pseudo-literals
89 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
358 // Top-level nodes
364 // JSDoc nodes
376 // https://jsdoc.app/about-namepaths.html
737 … OptionalChain = 1 << 5, // Chained MemberExpression rooted to a pseudo-OptionalExpression
744 …DisallowInContext = 1 << 12, // If node was parsed in a context where 'in-expressions' are not al…
765 JSDoc = 1 << 22, // If node was parsed inside jsdoc
766 … = 1 << 23, // If node was inside an ambient context -- a declaration file, …
[all …]
Dbinder.ts51 // 3. non-exported import declarations
82 // child is non-instantiated - continue searching
85 // child is const enum only - record state and continue searching
89 // child is instantiated - record state and stop
101 // Only jsdoc typedef definition can exist in jsdoc namespace, and it should
146 // The current node is a container. It should be set as the current container (and block-
152 // The current node is a block-scoped-container. It should be set as the current block-
155 … // Blocks (when not parented by functions), Catch clauses, For/For-in/For-of statements...
214 // If this file is an external module, then it is automatically in strict-mode according to
232 …* Inside the binder, we may create a diagnostic for an as-yet unbound node (with potentially no pa…
[all …]
/third_party/typescript_eslint/packages/typescript-estree/src/
Dnode-utils.ts3 import { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from './ts-estree';
38 [SyntaxKind.MinusToken]: '-';
44 [SyntaxKind.MinusMinusToken]: '--';
60 [SyntaxKind.MinusEqualsToken]: '-=';
124 * Returns true if the given ts.Node is a valid ESTree class member
126 * @returns is valid ESTree class member
158 node.modifiers[node.modifiers.length - 1]) ||
185 * Returns true if the given ts.Node is a JSDoc comment
187 * @returns is JSDoc comment
367 // this is token that starts at the end of previous token - return it
[all …]
/third_party/typescript/src/testRunner/unittests/
DpublicApi.ts56 describe("unittests:: Public APIs:: JSDoc newlines", () => {
75 it("checks if a PrivateIdentifier is a valid property name", () => {
77 assert.isTrue(ts.isPropertyName(prop), "PrivateIdentifier must be a valid property name.");
152 ["en", "en-us"].forEach(locale => verifyValidateLocale(locale, /*expctedToReadFile*/ false));
/third_party/typescript/
DREADME.md9-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale…
18 npm install -g typescript
24 npm install -g typescript@next
36 …icrosoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=…
37 …20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScr…
45 * [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.h…
46 * [Programming handbook](https://www.typescriptlang.org/docs/handbook/basic-types.html)
51 In order to build the TypeScript compiler, ensure that you have [Git](https://git-scm.com/downloads…
68 npm install -g gulp
82 … # Use --tests=<testPath> for a specific test and/or --runner=<runnerName> for a specific suite.
[all …]
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts5 License at http://www.apache.org/licenses/LICENSE-2.0
10 MERCHANTABLITY OR NON-INFRINGEMENT.
22 * The `in` and `for-in` operators can *not* be safely used,
167 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
516 JSDoc = 4194304, enumerator
795 * Several node kinds share function-like features such as a signature,
798 * - FunctionDeclaration
799 * - MethodDeclaration
800 * - AccessorDeclaration
1405 * A list of comma-separated expressions. This node is only created by transformations.
[all …]
Dtsserverlibrary.d.ts5 License at http://www.apache.org/licenses/LICENSE-2.0
10 MERCHANTABLITY OR NON-INFRINGEMENT.
22 * The `in` and `for-in` operators can *not* be safely used,
167 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
516 JSDoc = 4194304, enumerator
795 * Several node kinds share function-like features such as a signature,
798 * - FunctionDeclaration
799 * - MethodDeclaration
800 * - AccessorDeclaration
1405 * A list of comma-separated expressions. This node is only created by transformations.
[all …]
/third_party/typescript/lib/
DtypescriptServices.d.ts5 License at http://www.apache.org/licenses/LICENSE-2.0
10 MERCHANTABLITY OR NON-INFRINGEMENT.
22 * The `in` and `for-in` operators can *not* be safely used,
167 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
516 JSDoc = 4194304, enumerator
786 * Several node kinds share function-like features such as a signature,
789 * - FunctionDeclaration
790 * - MethodDeclaration
791 * - AccessorDeclaration
1396 * A list of comma-separated expressions. This node is only created by transformations.
[all …]
Dtypescript.d.ts5 License at http://www.apache.org/licenses/LICENSE-2.0
10 MERCHANTABLITY OR NON-INFRINGEMENT.
22 * The `in` and `for-in` operators can *not* be safely used,
167 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
516 JSDoc = 4194304, enumerator
786 * Several node kinds share function-like features such as a signature,
789 * - FunctionDeclaration
790 * - MethodDeclaration
791 * - AccessorDeclaration
1396 * A list of comma-separated expressions. This node is only created by transformations.
[all …]
Dtsserverlibrary.d.ts5 License at http://www.apache.org/licenses/LICENSE-2.0
10 MERCHANTABLITY OR NON-INFRINGEMENT.
22 * The `in` and `for-in` operators can *not* be safely used,
167 …/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTempl…
516 JSDoc = 4194304, enumerator
786 * Several node kinds share function-like features such as a signature,
789 * - FunctionDeclaration
790 * - MethodDeclaration
791 * - AccessorDeclaration
1396 * A list of comma-separated expressions. This node is only created by transformations.
[all …]
/third_party/typescript/src/services/refactors/
DconvertParamsToDestructuredObject.ts39 if (groupedReferences.valid) {
98 …atMap(names, /*mapfn*/ name => FindAllReferences.getReferenceEntriesForNode(-1, name, program, pro…
102 groupedReferences.valid = false;
109 …erences: GroupedReferences = { functionCalls: [], declarations: [], classReferences, valid: true }; constant
117 groupedReferences.valid = false;
176 …e refactored function is a constructor, we must also check if the references to its class are valid
205 groupedReferences.valid = false;
328 // don't offer refactor on top-level JSDoc
420 return parameters.length - 1;
442 …const nonRestArguments = hasRestParameter ? functionArguments.slice(0, parameters.length - 1) : fu…
[all …]
/third_party/typescript/src/loc/lcl/jpn/diagnosticMessages/
DdiagnosticMessages.generated.json.lcl1 <?xml version="1.0" encoding="utf-8"?>
2 …ipt\localization\compiler2.resx" PsrId="306" FileType="1" SrcCul="en-US" TgtCul="ja-JP" xmlns="htt…
10 <Str Name="HobbitID" Val="6d166059-1f22-4f75-80d1-261d6407ef5d" />
53 <Val><![CDATA[A JSDoc '@typedef' comment may not contain multiple '@type' tags.]]></Val>
55 <Val><![CDATA[JSDoc '@typedef' コメントに複数の '@type' タグを含めることはできません。]]></Val>
107 …<Val><![CDATA[A class can only implement an identifier/qualified-name with optional type arguments…
329 <Val><![CDATA[A default export can only be used in an ECMAScript-style module.]]></Val>
356 …ve a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.]]></Val>
358 …3 の動的インポート呼び出しには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、`--lib` オプションに 'ES2015' …
365 …Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option.]]></Val>
[all …]
/third_party/typescript/src/loc/lcl/chs/diagnosticMessages/
DdiagnosticMessages.generated.json.lcl1 <?xml version="1.0" encoding="utf-8"?>
2 …ipt\localization\compiler2.resx" PsrId="306" FileType="1" SrcCul="en-US" TgtCul="zh-CN" xmlns="htt…
10 <Str Name="HobbitID" Val="6d166059-1f22-4f75-80d1-261d6407ef5d" />
53 <Val><![CDATA[A JSDoc '@typedef' comment may not contain multiple '@type' tags.]]></Val>
55 <Val><![CDATA[JSDoc "@typedef" 注释不能包含多个 "@type" 标记。]]></Val>
107 …<Val><![CDATA[A class can only implement an identifier/qualified-name with optional type arguments…
329 <Val><![CDATA[A default export can only be used in an ECMAScript-style module.]]></Val>
331 <Val><![CDATA[默认导出只能在 ECMAScript-style 模块中使用。]]></Val>
356 …ve a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.]]></Val>
358 …<Val><![CDATA[ES5/ES3 中的动态导入调用需要 "Promise" 构造函数。确保对 "Promise" 构造函数进行了声明或在 "--lib" 选项中包含了 "ES2015"。…
[all …]
/third_party/typescript/src/loc/lcl/cht/diagnosticMessages/
DdiagnosticMessages.generated.json.lcl1 <?xml version="1.0" encoding="utf-8"?>
2 …ipt\localization\compiler2.resx" PsrId="306" FileType="1" SrcCul="en-US" TgtCul="zh-TW" xmlns="htt…
10 <Str Name="HobbitID" Val="6d166059-1f22-4f75-80d1-261d6407ef5d" />
53 <Val><![CDATA[A JSDoc '@typedef' comment may not contain multiple '@type' tags.]]></Val>
55 <Val><![CDATA[JSDoc '@typedef' 註解不能包含多個 '@type' 標籤。]]></Val>
107 …<Val><![CDATA[A class can only implement an identifier/qualified-name with optional type arguments…
329 <Val><![CDATA[A default export can only be used in an ECMAScript-style module.]]></Val>
356 …ve a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.]]></Val>
358 …<Val><![CDATA[ES5/ES3 中的動態匯入呼叫需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 `--lib` 選項中納入 'ES2015'。…
365 …Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option.]]></Val>
[all …]
/third_party/typescript/src/loc/lcl/deu/diagnosticMessages/
DdiagnosticMessages.generated.json.lcl1 <?xml version="1.0" encoding="utf-8"?>
2 …ipt\localization\compiler2.resx" PsrId="306" FileType="1" SrcCul="en-US" TgtCul="de-DE" xmlns="htt…
10 <Str Name="HobbitID" Val="6d166059-1f22-4f75-80d1-261d6407ef5d" />
46 <Val><![CDATA[Ein "{0}"-Parameter muss der erste Parameter sein.]]></Val>
53 <Val><![CDATA[A JSDoc '@typedef' comment may not contain multiple '@type' tags.]]></Val>
55 … <Val><![CDATA[Ein JSDoc-Kommentar "@typedef" darf nicht mehrere @type-Tags enthalten.]]></Val>
64 <Val><![CDATA[Ein bigint-Literal kann keine exponentielle Notation verwenden.]]></Val>
73 <Val><![CDATA[Ein bigint-Literal muss eine ganze Zahl sein.]]></Val>
91 …<Val><![CDATA[Eine break-Anweisung darf nur in einer einschließenden iteration- oder switch-Anweis…
100 …<Val><![CDATA[Eine break-Anweisung kann nur zu einer Bezeichnung einer einschließenden Anweisung s…
[all …]
/third_party/typescript/src/loc/lcl/fra/diagnosticMessages/
DdiagnosticMessages.generated.json.lcl1 <?xml version="1.0" encoding="utf-8"?>
2 …ipt\localization\compiler2.resx" PsrId="306" FileType="1" SrcCul="en-US" TgtCul="fr-FR" xmlns="htt…
10 <Str Name="HobbitID" Val="6d166059-1f22-4f75-80d1-261d6407ef5d" />
62 <Val><![CDATA[A JSDoc '@typedef' comment may not contain multiple '@type' tags.]]></Val>
64 …<Val><![CDATA[Un commentaire JSDoc '@typedef' ne peut pas contenir plusieurs balises '@type'.]]></…
116 …<Val><![CDATA[A class can only implement an identifier/qualified-name with optional type arguments…
338 <Val><![CDATA[A default export can only be used in an ECMAScript-style module.]]></Val>
365 …ve a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.]]></Val>
367 …déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.]]></Val>
374 …Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option.]]></Val>
[all …]

123