Home
last modified time | relevance | path

Searched refs:Optional (Results 1 – 25 of 47) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsMappedType.cpp36 {"nameKeyType", AstDumper::Optional(nameKeyType_)}, in Dump()
37 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
39 ? AstDumper::Optional(false) in Dump()
40 … : readonly_ == MappedOption::PLUS ? AstDumper::Optional("+") : AstDumper::Optional("-")}, in Dump()
42 ? AstDumper::Optional(false) in Dump()
43 … : optional_ == MappedOption::PLUS ? AstDumper::Optional("+") : AstDumper::Optional("-")}}); in Dump()
DtsNamedTupleMember.cpp33 {"optional", AstDumper::Optional(optional_)}, in Dump()
34 {"rest", AstDumper::Optional(rest_)}}); in Dump()
DtsTypeAliasDeclaration.cpp43 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
44 {"declare", AstDumper::Optional(declare_)}}); in Dump()
DtsPrivateIdentifier.cpp39 {"value", AstDumper::Optional(value_)}, in Dump()
40 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
DtsTypeParameter.cpp41 {"constraint", AstDumper::Optional(constraint_)}, in Dump()
42 {"default", AstDumper::Optional(defaultType_)}, in Dump()
DtsImportType.cpp41 {"qualifier", AstDumper::Optional(qualifier_)}, in Dump()
42 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
DtsConstructorType.cpp45 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
47 {"abstract", AstDumper::Optional(abstract_)}}); in Dump()
DtsMethodSignature.cpp53 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
54 {"typeAnnotation", AstDumper::Optional(returnTypeAnnotation_)}}); in Dump()
DtsSignatureDeclaration.cpp49 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
50 {"returnType", AstDumper::Optional(returnTypeAnnotation_)}}); in Dump()
DtsEnumMember.cpp34 …dumper->Add({{"type", "TSEnumMember"}, {"id", key_}, {"initializer", AstDumper::Optional(init_)}}); in Dump()
DtsClassImplements.cpp37 {"typeParameters", AstDumper::Optional(typeParameters_)}}); in Dump()
DtsModuleDeclaration.cpp38 {"body", AstDumper::Optional(body_)}, in Dump()
DtsPropertySignature.cpp42 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
DtsPropertySignature.h65 bool Optional() const in Optional() function
DtsTypeReference.cpp43 …TSTypeReference"}, {"typeName", typeName_}, {"typeParameters", AstDumper::Optional(typeParams_)}}); in Dump()
/arkcompiler/ets_frontend/es2panda/ir/base/
DclassProperty.cpp51 {"value", AstDumper::Optional(value_)}, in Dump()
52 {"accessibility", AstDumper::Optional(AstDumper::ModifierToString(modifiers_))}, in Dump()
53 {"abstract", AstDumper::Optional((modifiers_ & ModifierFlags::ABSTRACT) != 0)}, in Dump()
59 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
60 {"definite", AstDumper::Optional(definite_)}, in Dump()
DscriptFunction.cpp92 {"thisParam", AstDumper::Optional(thisParam_)}, in Dump()
94 {"returnType", AstDumper::Optional(returnTypeAnnotation_)}, in Dump()
95 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
96 {"declare", AstDumper::Optional(declare_)}, in Dump()
97 {"body", AstDumper::Optional(body_)}}); in Dump()
DmethodDefinition.cpp87 {"accessibility", AstDumper::Optional(AstDumper::ModifierToString(modifiers_))}, in Dump()
88 {"abstract", AstDumper::Optional((modifiers_ & ModifierFlags::ABSTRACT) != 0)}, in Dump()
/arkcompiler/ets_frontend/es2panda/ir/
DastDump.h44 class Optional {
47 explicit Optional(const ir::AstNode *node) : value_(node) {} in Optional() function
48 explicit Optional(const char *string) : value_(const_cast<char *>(string)) {} in Optional() function
49 explicit Optional(bool boolean) : value_(boolean) {} in Optional() function
94 Property(const char *key, Optional optional) : key_(key) in Property()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp43 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
44 {"optional", AstDumper::Optional(IsOptional())}}); in Dump()
/arkcompiler/ets_frontend/es2panda/
DREADME.md10 ## Optional arguments
34 ### Optional arguments
/arkcompiler/ets_frontend/es2panda/ir/module/
DimportDeclaration.cpp37 {"isType", AstDumper::Optional(IsType())}}); in Dump()
DexportNamedDeclaration.cpp46 {"isType", AstDumper::Optional(IsType())}}); in Dump()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DtypeGuardsAsAssertions.ts26 export type Optional<a> = Some<a> | None;
37 export function isSome<a>(value: Optional<a>): value is Some<a> {
51 let result: Optional<r> = none;
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclaration.cpp58 {"declare", AstDumper::Optional(declare_)}}); in Dump()

12