Home
last modified time | relevance | path

Searched refs:asserts (Results 1 - 25 of 43) sorted by relevance

12

/third_party/protobuf/js/binary/
H A Dencoder.js40 goog.require('goog.asserts');
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
[all...]
H A Dreader.js49 goog.require('goog.asserts');
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
[all...]
H A Ddecoder.js48 goog.require('goog.asserts');
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
[all...]
H A Dwriter.js60 goog.require('goog.asserts');
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
[all...]
H A Dutils.js40 goog.require('goog.asserts');
631 goog.asserts.assert(dec.length > 0);
734 goog.asserts.assert(hex.length == 18);
735 goog.asserts.assert(hex[0] == '0');
736 goog.asserts.assert(hex[1] == 'x');
1064 goog.asserts.fail('Type not convertible to Uint8Array.');
/third_party/typescript/tests/baselines/reference/
H A DassertionTypePredicates1.js5 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 {
104 assertIsTest2(): asserts this is Test2 {
108 assertThis(): asserts thi
[all...]
H A DassertionFunctionWildcardImport2.js3 //// [asserts.ts]
4 function isNonNullable<T>(obj: T): asserts obj is NonNullable<T> {
15 import * as asserts from "./asserts";
18 asserts.isNonNullable(obj);
23 //// [asserts.js]
36 var asserts = require("./asserts"); variable
38 asserts.isNonNullable(obj);
H A DnarrowingUnionToUnion.js67 function f1(x: any): asserts x is number | undefined { }
72 function f2(x: any): asserts x is 6 | undefined { }
173 declare function assert<T>(value: any): asserts value is T
207 function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {}
403 declare function f1(x: any): asserts x is number | undefined;
405 declare function f2(x: any): asserts x is 6 | undefined;
417 declare function assert<T>(value: any): asserts value is T;
422 declare function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null;
H A DnullPropertyName.js55 foo.asserts = 1;
139 foo.asserts = 1;
222 export var asserts: number;
H A DjsDeclarationsFunctionKeywordPropExhaustive.js55 foo.asserts = 1;
138 foo.asserts = 1;
266 export const asserts: number;
H A DcontrolFlowCommaExpressionAssertionWithinTernary.js2 declare function assert(value: any): asserts value;
H A DevolvingArrayTypeInAssert.js2 export function unsafeCast<T>(_value: unknown): asserts _value is T { }
H A DassertionFunctionsCanNarrowByDiscriminant.js14 declare function assertEqual<T>(value: any, type: T): asserts value is T;
H A DcontrolFlowCommaExpressionAssertionMultiple.js2 function Narrow<T>(value: any): asserts value is T {}
H A DcontrolFlowOptionalChain.js137 // asserts
138 declare const isDefined: <T>(value: T) => asserts value is NonNullable<T>;
139 declare const isString: (value: unknown) => asserts value is string;
140 declare const maybeIsString: undefined | ((value: unknown) => asserts value is string);
468 declare function assert(x: unknown): asserts x;
469 declare function assertNonNull<T>(x: T): asserts x is NonNullable<T>;
H A DassertionFunctionWildcardImport1.js8 export declare function assert(expression: unknown): asserts expression;
/third_party/node/test/fixtures/apilinks/
H A Dreverse.js8 const asserts = module.exports = ok;
10 asserts.ok = ok;
12 asserts.strictEqual = function() {
/third_party/protobuf/js/
H A Ddebug.js38 goog.require('goog.asserts');
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,
H A Dmessage.js42 goog.require('goog.asserts');
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
[all...]
H A Dmap.js33 goog.require('goog.asserts');
151 goog.asserts.assert(valueToObject);
492 goog.asserts.assert(opt_valueReaderCallback);
507 goog.asserts.assert(key != undefined);
508 goog.asserts.assert(value != undefined);
/third_party/protobuf/js/commonjs/
H A Dimport_test.js36 var asserts = require('closure_asserts_commonjs'); variable
39 // Bring asserts into the global namespace.
40 googleProtobuf.object.extend(global, asserts);
H A Dstrict_test.js36 var asserts = require('closure_asserts_commonjs'); variable
39 // Bring asserts into the global namespace.
40 googleProtobuf.object.extend(global, asserts);
/third_party/protobuf/js/compatibility_tests/v3.0.0/commonjs/
H A Dimport_test.js36 var asserts = require('closure_asserts_commonjs'); variable
39 // Bring asserts into the global namespace.
40 googleProtobuf.object.extend(global, asserts);
/third_party/node/test/parallel/
H A Dtest-vm-module-link.js127 async function asserts() {
149 await asserts();
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceBuildDefs.h97 constexpr bool asserts() { in asserts() function

Completed in 13 milliseconds

12