/third_party/protobuf/js/binary/ |
D | encoder.js | 84 goog.asserts.assert(lowBits == Math.floor(lowBits)); 85 goog.asserts.assert(highBits == Math.floor(highBits)); 86 goog.asserts.assert((lowBits >= 0) && 88 goog.asserts.assert((highBits >= 0) && 109 goog.asserts.assert(lowBits == Math.floor(lowBits)); 110 goog.asserts.assert(highBits == Math.floor(highBits)); 111 goog.asserts.assert((lowBits >= 0) && 113 goog.asserts.assert((highBits >= 0) && 126 goog.asserts.assert(value == Math.floor(value)); 127 goog.asserts.assert((value >= 0) && [all …]
|
D | reader.js | 275 goog.asserts.fail('Decoder hit an error'); 294 goog.asserts.fail( 338 goog.asserts.fail('Invalid wire type for skipVarintField'); 352 goog.asserts.fail('Invalid wire type for skipDelimitedField'); 367 goog.asserts.fail('Invalid wire type for skipFixed32Field'); 381 goog.asserts.fail('Invalid wire type for skipFixed64Field'); 397 goog.asserts.fail('Unmatched start-group tag: stream EOF'); 405 goog.asserts.fail('Unmatched end-group tag'); 438 goog.asserts.fail('Invalid wire encoding for field.'); 453 goog.asserts.assert(!this.readCallbacks_[callbackName]); [all …]
|
D | decoder.js | 238 goog.asserts.assert(this.cursor_ <= this.end_); 321 goog.asserts.fail('Failed to read varint, encoding is invalid.'); 427 goog.asserts.assert(this.cursor_ <= this.end_); 435 goog.asserts.assert(this.cursor_ <= this.end_); 443 goog.asserts.assert(this.cursor_ <= this.end_); 451 goog.asserts.assert(this.cursor_ <= this.end_); 461 goog.asserts.assert(this.cursor_ <= this.end_); 474 goog.asserts.assert(false); 477 goog.asserts.assert(this.cursor_ <= this.end_); 641 goog.asserts.assert(this.cursor_ <= this.end_); [all …]
|
D | writer.js | 152 goog.asserts.assert(messageLength >= 0); 208 goog.asserts.assert(this.bookmarks_.length == 0); 227 goog.asserts.assert(offset == flat.length); 263 goog.asserts.assert(this.bookmarks_.length >= 0); 278 goog.asserts.assert(field >= 1 && field == Math.floor(field)); 321 goog.asserts.fail('Group field type not supported in writeAny()'); 324 goog.asserts.fail('Message field type not supported in writeAny()'); 354 goog.asserts.fail('Invalid field type in writeAny()'); 473 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) && 488 goog.asserts.assert((intValue >= -jspb.BinaryConstants.TWO_TO_31) && [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | assertionTypePredicates1.types | 10 const assert: (value: unknown) => asserts value = value => {} 11 >assert : (value: unknown) => asserts value 16 declare function assertIsString(value: unknown): asserts value is string; 17 >assertIsString : (value: unknown) => asserts value is string 20 declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; 21 >assertIsArrayOfStrings : (value: unknown) => asserts value is string[] 24 declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 25 >assertDefined : <T>(value: T) => asserts value is NonNullable<T> 39 >assert : (value: unknown) => asserts value 57 >assert : (value: unknown) => asserts value [all …]
|
D | assertionTypePredicates1.js | 5 const assert: (value: unknown) => asserts value = value => {} 7 declare function assertIsString(value: unknown): asserts value is string; 8 declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; 9 declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 67 function f03(x: string | undefined, assert: (value: unknown) => asserts value) { 73 export declare function assert(value: unknown, message?: string): asserts value; 74 export declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 97 assert(value: unknown): asserts value { field in Test 104 assertIsTest2(): asserts this is Test2 { 108 assertThis(): asserts this { [all …]
|
D | requireAssertsFromTypescript.types | 3 >art : (value: any, message?: string | Error) => asserts value 9 >artoo : (value: any, message?: string | Error) => asserts value 10 >require('./ex2') : (value: any, message?: string | Error) => asserts value 20 >art : (value: any, message?: string | Error) => asserts value 29 >artoo : (value: any, message?: string | Error) => asserts value 34 export function art(value: any, message?: string | Error): asserts value; 35 >art : (value: any, message?: string | Error) => asserts value 40 declare function art(value: any, message?: string | Error): asserts value; 41 >art : (value: any, message?: string | Error) => asserts value 46 >art : (value: any, message?: string | Error) => asserts value
|
D | assertionsAndNonReturningFunctions.types | 2 /** @typedef {(check: boolean) => asserts check} AssertFunc */ 7 >check => { if (!check) throw new Error();} : (check: boolean) => asserts check 17 /** @type {(x: unknown) => asserts x is string } */ 19 >assertIsString : (x: unknown) => asserts x is string 35 * @returns {asserts check} 38 >assert2 : (check: boolean) => asserts check 91 >assert2 : (check: boolean) => asserts check 109 >assertIsString : (x: unknown) => asserts x is string
|
D | assertionTypePredicates1.errors.txt | 22 const assert: (value: unknown) => asserts value = value => {} 24 declare function assertIsString(value: unknown): asserts value is string; 25 declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; 26 declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 88 function f03(x: string | undefined, assert: (value: unknown) => asserts value) { 94 export declare function assert(value: unknown, message?: string): asserts value; 95 export declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 120 assert(value: unknown): asserts value { 127 assertIsTest2(): asserts this is Test2 { 131 assertThis(): asserts this { [all …]
|
D | evolvingArrayTypeInAssert.types | 2 export function unsafeCast<T>(_value: unknown): asserts _value is T { } 3 >unsafeCast : <T>(_value: unknown) => asserts _value is T 22 >unsafeCast : <T>(_value: unknown) => asserts _value is T
|
D | privateNamesAssertion.types | 5 #p1: (v: any) => asserts v is string = (v) => { 6 >#p1 : (v: any) => asserts v is string 28 >this.#p1 : (v: any) => asserts v is string
|
D | controlFlowCommaExpressionAssertionWithinTernary.types | 2 declare function assert(value: any): asserts value; 3 >assert : (value: any) => asserts value 24 >assert : (value: any) => asserts value
|
D | assertionFunctionsCanNarrowByDiscriminant.types | 23 declare function assertEqual<T>(value: any, type: T): asserts value is T; 24 >assertEqual : <T>(value: any, type: T) => asserts value is T 39 >assertEqual : <T>(value: any, type: T) => asserts value is T 62 >assertEqual : <T>(value: any, type: T) => asserts value is T
|
D | assertionsAndNonReturningFunctions.errors.txt | 6 /** @typedef {(check: boolean) => asserts check} AssertFunc */ 13 /** @type {(x: unknown) => asserts x is string } */ 20 * @returns {asserts check}
|
D | convertClassExpressionToFunctionFromObjectProperty2.js | 152 asserts: class { 490 asserts: /** @class */ (function () { 491 function asserts() { function 493 return asserts;
|
/third_party/typescript_eslint/packages/scope-manager/tests/util/ |
D | expect.ts | 32 function expectToBeBlockScope(scope: Scope): asserts scope is BlockScope { 35 function expectToBeCatchScope(scope: Scope): asserts scope is CatchScope { 38 function expectToBeClassScope(scope: Scope): asserts scope is ClassScope { 41 function expectToBeForScope(scope: Scope): asserts scope is ForScope { 44 function expectToBeFunctionScope(scope: Scope): asserts scope is FunctionScope { 49 ): asserts scope is FunctionExpressionNameScope { 52 function expectToBeGlobalScope(scope: Scope): asserts scope is GlobalScope { 55 function expectToBeModuleScope(scope: Scope): asserts scope is ModuleScope { 58 function expectToBeSwitchScope(scope: Scope): asserts scope is SwitchScope { 61 function expectToBeWithScope(scope: Scope): asserts scope is WithScope { [all …]
|
/third_party/typescript/tests/cases/conformance/controlFlow/ |
D | assertionTypePredicates1.ts | 8 const assert: (value: unknown) => asserts value = value => {} 10 declare function assertIsString(value: unknown): asserts value is string; 11 declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; 12 declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 70 function f03(x: string | undefined, assert: (value: unknown) => asserts value) { 76 export declare function assert(value: unknown, message?: string): asserts value; 77 export declare function assertDefined<T>(value: T): asserts value is NonNullable<T>; 100 assert(value: unknown): asserts value { 107 assertIsTest2(): asserts this is Test2 { 111 assertThis(): asserts this { [all …]
|
/third_party/node/test/fixtures/apilinks/ |
D | reverse.js | 8 const asserts = module.exports = ok; constant 10 asserts.ok = ok; 12 asserts.strictEqual = function() {
|
/third_party/grpc/doc/ |
D | xds-test-descriptions.md | 102 Test driver asserts: 121 Test driver asserts that: 140 Test driver asserts: 147 Test driver asserts: 153 Test driver asserts: 173 Test driver asserts: 180 Test driver asserts: 186 Test driver asserts: 209 Test driver asserts: 216 Test driver asserts: [all …]
|
/third_party/protobuf/js/ |
D | debug.js | 58 goog.asserts.assert(message instanceof jspb.Message, 62 goog.asserts.assert(object['getExtension'], 91 goog.asserts.assertArray(thing); 104 goog.asserts.assert(message instanceof jspb.Message,
|
D | message.js | 787 goog.asserts.fail('Cannot coerce to b64 string: ' + goog.typeOf(value)); 806 goog.asserts.fail('Cannot coerce to Uint8Array: ' + goog.typeOf(value)); 853 goog.asserts.fail('Inconsistent type in JSPB repeated field array. ' + 988 goog.asserts.assertInstanceof(msg, jspb.Message); 1112 goog.asserts.assertInstanceof(msg, jspb.Message); 1137 goog.asserts.assertInstanceof(msg, jspb.Message); 1161 goog.asserts.assertInstanceof(msg, jspb.Message); 1293 goog.asserts.assertInstanceof(msg, jspb.Message); 1316 goog.asserts.assertInstanceof(msg, jspb.Message); 1337 goog.asserts.assertInstanceof(msg, jspb.Message); [all …]
|
/third_party/typescript_eslint/packages/shared-fixtures/fixtures/typescript/basics/ |
D | type-assertion-with-guard-in-method.src.ts | 2 isBar(): asserts this is string { 5 isBaz = (): asserts this is string => {
|
D | type-assertion-in-method.src.ts | 2 isBar(): asserts this { 5 isBaz = (): asserts this => {
|
D | keyword-variables.src.ts | 4 const asserts = 1; constant 38 asserts,
|
/third_party/typescript/src/compiler/ |
D | debug.ts | 127 …ng, verboseDebugInfo?: string | (() => string), stackCrawlMark?: AnyFunction): asserts expression { 162 …tIsDefined<T>(value: T, message?: string, stackCrawlMark?: AnyFunction): asserts value is NonNulla… 180 …e>(value: NodeArray<T>, message?: string, stackCrawlMark?: AnyFunction): asserts value is NodeArra… 181 …T>(value: readonly T[], message?: string, stackCrawlMark?: AnyFunction): asserts value is readonly… 204 …(node: T) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts nodes is NodeArra… 205 …(node: T) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts nodes is readonly… 217 …, test: (node: T) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts node is U; 229 …de: Node) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts node is Exclude<T… 241 …, test: (node: T) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts node is U; 242 …(node: T) => node is U, message?: string, stackCrawlMark?: AnyFunction): asserts node is U | undef… [all …]
|