Home
last modified time | relevance | path

Searched refs:IsOptional (Results 1 – 15 of 15) sorted by relevance

/third_party/typescript/tests/cases/compiler/
DpropTypeValidatorInference.ts5 export type IsOptional<T> = undefined | null extends T ? true : undefined extends T ? true : null e… alias
7 …K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true …
/third_party/flatbuffers/src/
Didl_gen_swift.cpp542 field.IsOptional() && IsScalar(field.value.type.base_type); in GenTableWriterFields()
564 code_ += field.IsOptional() ? (optional_enum + "\\") in GenTableWriterFields()
571 ? (field.IsOptional() ? "nil" : GenEnumDefaultValue(field)) in GenTableWriterFields()
575 (field.IsOptional() ? "nil" : default_value)); in GenTableWriterFields()
584 code_.SetValue("VALUETYPE", field.IsOptional() ? "Bool?" : "Bool"); in GenTableWriterFields()
587 code_ += field.IsOptional() ? "\\" : " def: {{CONSTANT}},"; in GenTableWriterFields()
591 (field.IsOptional() ? "nil" : default_value)); in GenTableWriterFields()
655 std::string optional = field.IsOptional() ? "?" : ""; in GenTableReaderFields()
681 field.IsOptional() ? "nil" : GenEnumDefaultValue(field); in GenTableReaderFields()
1205 std::string nullable = field.IsOptional() ? "?" : ""; in BuildObjectAPIConstructorBody()
[all …]
Didl_gen_rust.cpp210 return field.IsOptional() || !IsScalar(field.value.type.base_type); in IsOptionalToBuilder()
927 if (!IsScalar(field.value.type.base_type) || field.IsOptional()) { in GetDefaultValue()
933 if (field.IsOptional() && !IsUnion(field.value.type)) { return "None"; } in GetDefaultValue()
1156 if (in_a_table && !IsUnion(type) && field.IsOptional()) { in ObjectFieldType()
1252 return (field.IsOptional() ? "self.fbb_.push_slot_always::<" in TableBuilderArgsAddFuncBody()
1259 return (field.IsOptional() ? "self.fbb_.push_slot_always::<" in TableBuilderArgsAddFuncBody()
1300 return field.IsOptional() ? "Option<" + s + ">" : s; in GenTableAccessorFuncReturnType()
1458 !(field.IsOptional() || field.IsRequired()) in GenTableAccessorFuncBody()
1461 const std::string unwrap = field.IsOptional() ? "" : ".unwrap()"; in GenTableAccessorFuncBody()
1700 if (field.IsOptional()) { in GenTable()
[all …]
Didl_gen_lobster.cpp113 auto defval = field.IsOptional() ? "0" : field.value.constant; in GenStructAccessor()
119 if (field.IsOptional()) in GenStructAccessor()
204 if (IsScalar(field.value.type.base_type) && !field.IsOptional()) in GenTableBuilders()
Didl_gen_ts.cpp321 GenTypeName(imports, field, field.value.type, true, field.IsOptional()); in GenStructArgs()
1113 field.IsOptional()) + in GenStruct()
1537 return field.IsOptional() && field.value.constant == "null"; in HasNullDefault()
1543 allowNull && field.IsOptional()); in GetArgType()
Didl_parser.cpp941 if (!field->IsOptional() && in ParseField()
3616 attr__, docs__, IsOptional()); in Serialize()
/third_party/typescript/tests/baselines/reference/
DpropTypeValidatorInference.js6 export type IsOptional<T> = undefined | null extends T ? true : undefined extends T ? true : null e…
8 …K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true …
DpropTypeValidatorInference.symbols5 export type IsOptional<T> = undefined | null extends T ? true : undefined extends T ? true : null e…
6 >IsOptional : Symbol(IsOptional, Decl(index.d.ts, 0, 44))
12 …K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true …
22 >IsOptional : Symbol(IsOptional, Decl(index.d.ts, 0, 44))
DpropTypeValidatorInference.types5 export type IsOptional<T> = undefined | null extends T ? true : undefined extends T ? true : null e…
6 >IsOptional : IsOptional<T>
14 …K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true …
/third_party/flatbuffers/include/flatbuffers/
Didl.h308 return IsScalar(value.type.base_type) && IsOptional(); in IsScalarOptional()
310 bool IsOptional() const { in IsOptional() function
/third_party/typescript/tests/lib/
Dreact16.d.ts39 …export type IsOptional<T> = undefined | null extends T ? true : undefined extends T ? true : null … alias
41 …export type RequiredKeys<V> = { [K in keyof V]: V[K] extends Validator<infer T> ? IsOptional<T> ex…
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineVerifier.cpp1599 bool IsOptional = MI->isVariadic() && MONum == MCID.getNumOperands() - 1; in visitMachineOperand() local
1600 if (!IsOptional) { in visitMachineOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Target/
DTarget.td769 /// marked as IsOptional.
772 bit IsOptional = 0;
776 /// IsOptional == 1. If not set, this will default to "defaultFooOperands",
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.td863 let IsOptional = 1;
871 let IsOptional = 1;
997 let IsOptional = Optional;
/third_party/flatbuffers/tests/
Dtest.cpp3718 TEST_EQ(mana->IsOptional(), has_null); in OptionalScalarsTest()