Searched refs:IsOptional (Results 1 – 15 of 15) sorted by relevance
/third_party/typescript/tests/cases/compiler/ |
D | propTypeValidatorInference.ts | 5 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/ |
D | idl_gen_swift.cpp | 542 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 …]
|
D | idl_gen_rust.cpp | 210 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 …]
|
D | idl_gen_lobster.cpp | 113 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()
|
D | idl_gen_ts.cpp | 321 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()
|
D | idl_parser.cpp | 941 if (!field->IsOptional() && in ParseField() 3616 attr__, docs__, IsOptional()); in Serialize()
|
/third_party/typescript/tests/baselines/reference/ |
D | propTypeValidatorInference.js | 6 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 …
|
D | propTypeValidatorInference.symbols | 5 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))
|
D | propTypeValidatorInference.types | 5 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/ |
D | idl.h | 308 return IsScalar(value.type.base_type) && IsOptional(); in IsScalarOptional() 310 bool IsOptional() const { in IsOptional() function
|
/third_party/typescript/tests/lib/ |
D | react16.d.ts | 39 …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/ |
D | MachineVerifier.cpp | 1599 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/ |
D | Target.td | 769 /// 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/ |
D | SIInstrInfo.td | 863 let IsOptional = 1; 871 let IsOptional = 1; 997 let IsOptional = Optional;
|
/third_party/flatbuffers/tests/ |
D | test.cpp | 3718 TEST_EQ(mana->IsOptional(), has_null); in OptionalScalarsTest()
|