/third_party/node/test/parallel/ |
D | test-buffer-includes.js | 12 assert(b.includes('a')); 13 assert(!b.includes('a', 1)); 14 assert(!b.includes('a', -1)); 15 assert(!b.includes('a', -4)); 16 assert(b.includes('a', -b.length)); 17 assert(b.includes('a', NaN)); 18 assert(b.includes('a', -Infinity)); 19 assert(!b.includes('a', Infinity)); 20 assert(b.includes('bc')); 21 assert(!b.includes('bc', 2)); [all …]
|
D | test-net-remote-address-port.js | 37 assert.ok(remoteAddrCandidates.includes(socket.remoteAddress)); 38 assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily)); 45 assert.ok(remoteAddrCandidates.includes(socket.remoteAddress)); 46 assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily)); 55 assert.ok(remoteAddrCandidates.includes(client.remoteAddress)); 56 assert.ok(remoteFamilyCandidates.includes(client.remoteFamily)); 61 assert.ok(remoteAddrCandidates.includes(client.remoteAddress)); 62 assert.ok(remoteFamilyCandidates.includes(client.remoteFamily)); 65 assert.ok(remoteAddrCandidates.includes(client2.remoteAddress)); 66 assert.ok(remoteFamilyCandidates.includes(client2.remoteFamily)); [all …]
|
D | test-repl-tab-complete.js | 35 (lib) => !lib.startsWith('_') && !lib.includes('/'), 88 assert(data[0].includes('console?.log')); 217 assert.ok(data[0].includes('globalThis')); 248 data[0].includes(lib) && data[0].includes(`node:${lib}`), 253 assert(!builtinModules.includes(newModule)); 257 assert(modules.includes(newModule)); 321 assert.ok(data[0].includes('./')); 322 assert.ok(data[0].includes('../')); 339 assert.ok(data[0].includes('./test-repl-tab-complete')); 350 assert.ok(data[0].includes('../parallel/test-repl-tab-complete')); [all …]
|
D | test-repl-tab-complete-import.js | 9 (lib) => !lib.startsWith('_') && !lib.includes('/'), 38 data[0].includes(lib) && data[0].includes(`node:${lib}`), 43 assert(!builtinModules.includes(newModule)); 47 assert(modules.includes(newModule) && 48 !modules.includes(`node:${newModule}`)); 113 assert.ok(data[0].includes('./')); 114 assert.ok(data[0].includes('../')); 131 assert.ok(data[0].includes('./test-repl-tab-complete.js')); 142 assert.ok(data[0].includes('../parallel/test-repl-tab-complete.js')); 152 assert.ok(data[0].includes(
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | string-prototype-includes.js | 16 assert (x.includes ("Moggle")); 17 assert (x.includes ("Moggle Mog", 3)); 18 assert (x.includes ("")); 19 assert (x.includes ([])); 22 assert (y.includes ("Dragon") === false); 23 assert (y.includes ("Rage", 11) === false); 24 assert (y.includes ("Final", "Fantasy") === false); 25 assert (y.includes ("Hydaelyn", 30) === false); 26 assert (y.includes (undefined) === false); 28 assert(String.prototype.includes.call (5) === false); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | stringIncludes.symbols | 2 var includes: boolean; 3 >includes : Symbol(includes, Decl(stringIncludes.ts, 0, 3)) 5 includes = "abcde".includes("cd"); 6 >includes : Symbol(includes, Decl(stringIncludes.ts, 0, 3)) 7 >"abcde".includes : Symbol(String.includes, Decl(lib.es2015.core.d.ts, --, --)) 8 >includes : Symbol(String.includes, Decl(lib.es2015.core.d.ts, --, --)) 10 includes = "abcde".includes("cd", 2); 11 >includes : Symbol(includes, Decl(stringIncludes.ts, 0, 3)) 12 >"abcde".includes : Symbol(String.includes, Decl(lib.es2015.core.d.ts, --, --)) 13 >includes : Symbol(String.includes, Decl(lib.es2015.core.d.ts, --, --))
|
D | stringIncludes.types | 2 var includes: boolean; 3 >includes : boolean 5 includes = "abcde".includes("cd"); 6 >includes = "abcde".includes("cd") : boolean 7 >includes : boolean 8 >"abcde".includes("cd") : boolean 9 >"abcde".includes : (searchString: string, position?: number) => boolean 11 >includes : (searchString: string, position?: number) => boolean 14 includes = "abcde".includes("cd", 2); 15 >includes = "abcde".includes("cd", 2) : boolean [all …]
|
D | stringIncludes.js | 2 var includes: boolean; variable 3 includes = "abcde".includes("cd"); 4 includes = "abcde".includes("cd", 2); 7 var includes; variable 8 includes = "abcde".includes("cd"); 9 includes = "abcde".includes("cd", 2);
|
/third_party/typescript/tests/cases/fourslash/server/ |
D | jsdocTypedefTag.ts | 55 { marker: "numberLike", includes: ["charAt", "toExponential"] }, 57 { marker: "person", includes: ["personName", "personAge"] }, 58 { marker: "personName", includes: "charAt" }, 59 { marker: "personAge", includes: "toExponential" }, 61 { marker: "animal", includes: ["animalName", "animalAge"] }, 62 { marker: "animalName", includes: "charAt" }, 63 { marker: "animalAge", includes: "toExponential" }, 65 { marker: "dog", includes: ["dogName", "dogAge"] }, 66 { marker: "dogName", includes: "charAt" }, 67 { marker: "dogAge", includes: "toExponential" }, [all …]
|
/third_party/typescript/lib/ |
D | lib.es2016.array.include.d.ts | 27 includes(searchElement: T, fromIndex?: number): boolean; method 36 includes(searchElement: T, fromIndex?: number): boolean; method 45 includes(searchElement: number, fromIndex?: number): boolean; method 54 includes(searchElement: number, fromIndex?: number): boolean; method 63 includes(searchElement: number, fromIndex?: number): boolean; method 72 includes(searchElement: number, fromIndex?: number): boolean; method 81 includes(searchElement: number, fromIndex?: number): boolean; method 90 includes(searchElement: number, fromIndex?: number): boolean; method 99 includes(searchElement: number, fromIndex?: number): boolean; method 108 includes(searchElement: number, fromIndex?: number): boolean; method [all …]
|
/third_party/typescript/src/lib/ |
D | es2016.array.include.d.ts | 7 includes(searchElement: T, fromIndex?: number): boolean; method 16 includes(searchElement: T, fromIndex?: number): boolean; method 25 includes(searchElement: number, fromIndex?: number): boolean; method 34 includes(searchElement: number, fromIndex?: number): boolean; method 43 includes(searchElement: number, fromIndex?: number): boolean; method 52 includes(searchElement: number, fromIndex?: number): boolean; method 61 includes(searchElement: number, fromIndex?: number): boolean; method 70 includes(searchElement: number, fromIndex?: number): boolean; method 79 includes(searchElement: number, fromIndex?: number): boolean; method 88 includes(searchElement: number, fromIndex?: number): boolean; method [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | BUILD | 34 # We need to add includes in order to preserve existing source files' 38 includes = ["."], 183 includes = ["."], 198 includes = ["."], 218 includes = ["."], 234 includes = ["."], 248 includes = ["."], 265 includes = ["."], 282 includes = ["."], 297 includes = ["."], [all …]
|
/third_party/boost/libs/compute/test/ |
D | test_includes.cpp | 32 bool includes = bc::includes(set1.begin(), set1.begin() + 12, in BOOST_AUTO_TEST_CASE() local 34 BOOST_VERIFY(includes == true); in BOOST_AUTO_TEST_CASE() 37 includes = bc::includes(set1.begin(), set1.begin() + 12, in BOOST_AUTO_TEST_CASE() 39 BOOST_VERIFY(includes == false); in BOOST_AUTO_TEST_CASE() 50 bool includes = bc::includes(set1.begin(), set1.begin() + 12, in BOOST_AUTO_TEST_CASE() local 52 BOOST_VERIFY(includes == true); in BOOST_AUTO_TEST_CASE() 55 includes = bc::includes(set1.begin(), set1.begin() + 12, in BOOST_AUTO_TEST_CASE() 57 BOOST_VERIFY(includes == false); in BOOST_AUTO_TEST_CASE()
|
/third_party/typescript/tests/cases/fourslash/ |
D | quickInfoOnNarrowedTypeInModule.ts | 42 …{ marker: "1", includes: { name: "nonExportedStrOrNum", text: "var nonExportedStrOrNum: string | n… 43 …{ marker: "2", includes: { name: "nonExportedStrOrNum", text: "var nonExportedStrOrNum: number" },… 44 …{ marker: "3", includes: { name: "nonExportedStrOrNum", text: "var nonExportedStrOrNum: string" },… 45 …{ marker: "4", includes: { name: "exportedStrOrNum", text: "var exportedStrOrNum: string | number"… 46 …{ marker: "5", includes: { name: "exportedStrOrNum", text: "var exportedStrOrNum: number" }, isNew… 47 …{ marker: "6", includes: { name: "exportedStrOrNum", text: "var exportedStrOrNum: string" }, isNew… 48 …{ marker: "7", includes: { name: "exportedStrOrNum", text: "var m.exportedStrOrNum: string | numbe… 49 { marker: "8", includes: { name: "exportedStrOrNum", text: "var m.exportedStrOrNum: number" } }, 50 { marker: "9", includes: { name: "exportedStrOrNum", text: "var m.exportedStrOrNum: string" } },
|
D | completionListWithoutVariableinitializer.ts | 22 includes: ["a"], 28 includes: ["a", "b"], 34 includes: ["a", "b", "c", "d"], 39 includes: ["a", "b", "c", "d", "e"], 44 includes: ["a", "b", "c", "d", "e"], 49 includes: ["a", "b", "c", "d", "e"], 55 includes: ["a", "b", "c", "d", "e", "fn"], 60 includes: ["a", "b", "c", "d", "e", "fn"],
|
D | commentsClassMembers.ts | 183 includes: { name: "b", text: "(parameter) b: number", documentation: "number to add" }, 187 … includes: [{ name: "value", text: "(parameter) value: number", documentation: "this is value" }], 203 { marker: ["29", "33", "38", "109"], includes: locals }, 204 { marker: ["35", "40"], includes: locals, isNewIdentifierLocation: true }, 205 …{ marker: ["87"], includes: locals.filter(local => local === 'i1_s_p') , isNewIdentifierLocation: … 206 …{ marker: "31", includes: { name: "b", text: "(parameter) b: number", documentation: "number to ad… 207 …{ marker: "42", includes: { name: "value", text: "(parameter) value: number", documentation: "this… 208 { marker: ["45", "52", "59"], includes: { name: "b", text: "(parameter) b: number" } }, 209 …{ marker: ["49", "56", "63"], includes: { name: "value", text: "(parameter) value: number" }, isNe… 213 includes: [ [all …]
|
D | commentsExternalModules.ts | 39 includes: [ 50 includes: { name: "m1", text: "namespace m1", documentation: "Namespace comment" }, 55 includes: [ 69 includes: [ 81 …includes: { name: "extMod", text: 'import extMod = require("./commentsExternalModules_file0")', do… 85 includes: { name: "m1", text: "namespace extMod.m1", documentation: "Namespace comment" }, 89 includes: [
|
D | quickInfoOnNarrowedType.ts | 31 { marker: "1", includes: { name: "strOrNum", text: "(parameter) strOrNum: string | number" } }, 32 { marker: "2", includes: { name: "strOrNum", text: "(parameter) strOrNum: number" } }, 33 { marker: "3", includes: { name: "strOrNum", text: "(parameter) strOrNum: string" } }, 34 { marker: ["4", "5"], includes: { name: "s", text: "let s: string | undefined" } }, 35 { marker: "6", includes: { name: "s", text: "let s: string" } },
|
D | commentsVariables.ts | 49 …includes: { name: "myVariable", text: "var myVariable: number", documentation: "This is my variabl… 53 includes: [ 60 includes: [ 75 includes: [ 90 verify.completions({ marker: "10", includes: { name: "i", text: "var i: c", documentation: "instanc… 91 verify.completions({ marker: "11", includes: { name: "i1_i", text: "var i1_i: i1", documentation: "…
|
D | completionsWithDeprecatedTag1.ts | 27 includes: [ 32 includes: [ 37 includes: [ 42 includes: [ 47 includes: [
|
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/ |
D | prefer-includes.md | 1 # Enforce `includes` method over `indexOf` method (`prefer-includes`) 6 ES2015 has added `String#includes` and ES2016 has added `Array#includes`. 7 It makes code more understandable if we use those `includes` methods for the purpose. 11 This rule is aimed at suggesting `includes` method if `indexOf` method was used to check whether an… 13 If the receiver object of the `indexOf` method call has `includes` method and the two methods have … 16 …itionally, this rule reports the tests of simple regular expressions in favor of `String#includes`. 27 includes(x: any): boolean; 48 includes(x: any): boolean; 52 includes(x: any): boolean; 55 str.includes(value); [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | stringIncludes.ts | 3 var includes: boolean; variable 4 includes = "abcde".includes("cd"); 5 includes = "abcde".includes("cd", 2);
|
/third_party/node/test/js-native-api/test_constructor/ |
D | test.js | 29 assert.ok(propertyNames.includes('echo')); 30 assert.ok(propertyNames.includes('readwriteValue')); 31 assert.ok(propertyNames.includes('readonlyValue')); 32 assert.ok(!propertyNames.includes('hiddenValue')); 33 assert.ok(!propertyNames.includes('readwriteAccessor1')); 34 assert.ok(!propertyNames.includes('readwriteAccessor2')); 35 assert.ok(!propertyNames.includes('readonlyAccessor1')); 36 assert.ok(!propertyNames.includes('readonlyAccessor2'));
|
/third_party/node/test/js-native-api/test_properties/ |
D | test.js | 28 assert.ok(propertyNames.includes('echo')); 29 assert.ok(propertyNames.includes('readwriteValue')); 30 assert.ok(propertyNames.includes('readonlyValue')); 31 assert.ok(!propertyNames.includes('hiddenValue')); 32 assert.ok(propertyNames.includes('NameKeyValue')); 33 assert.ok(!propertyNames.includes('readwriteAccessor1')); 34 assert.ok(!propertyNames.includes('readwriteAccessor2')); 35 assert.ok(!propertyNames.includes('readonlyAccessor1')); 36 assert.ok(!propertyNames.includes('readonlyAccessor2'));
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
D | BUILD | 15 includes = ["."], 26 includes = ["."], 40 includes = ["."], 51 includes = ["."], 66 includes = ["."], 80 includes = ["."], 91 includes = ["."], 105 includes = ["."], 116 includes = ["."],
|