/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsMappedType.cpp | 36 {"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()
|
D | tsNamedTupleMember.cpp | 33 {"optional", AstDumper::Optional(optional_)}, in Dump() 34 {"rest", AstDumper::Optional(rest_)}}); in Dump()
|
D | tsTypeAliasDeclaration.cpp | 43 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump() 44 {"declare", AstDumper::Optional(declare_)}}); in Dump()
|
D | tsPrivateIdentifier.cpp | 39 {"value", AstDumper::Optional(value_)}, in Dump() 40 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
|
D | tsTypeParameter.cpp | 41 {"constraint", AstDumper::Optional(constraint_)}, in Dump() 42 {"default", AstDumper::Optional(defaultType_)}, in Dump()
|
D | tsImportType.cpp | 41 {"qualifier", AstDumper::Optional(qualifier_)}, in Dump() 42 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump()
|
D | tsConstructorType.cpp | 45 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump() 47 {"abstract", AstDumper::Optional(abstract_)}}); in Dump()
|
D | tsMethodSignature.cpp | 53 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump() 54 {"typeAnnotation", AstDumper::Optional(returnTypeAnnotation_)}}); in Dump()
|
D | tsSignatureDeclaration.cpp | 49 {"typeParameters", AstDumper::Optional(typeParams_)}, in Dump() 50 {"returnType", AstDumper::Optional(returnTypeAnnotation_)}}); in Dump()
|
D | tsEnumMember.cpp | 34 …dumper->Add({{"type", "TSEnumMember"}, {"id", key_}, {"initializer", AstDumper::Optional(init_)}}); in Dump()
|
D | tsClassImplements.cpp | 37 {"typeParameters", AstDumper::Optional(typeParameters_)}}); in Dump()
|
D | tsModuleDeclaration.cpp | 38 {"body", AstDumper::Optional(body_)}, in Dump()
|
D | tsPropertySignature.cpp | 42 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
|
D | tsPropertySignature.h | 65 bool Optional() const in Optional() function
|
D | tsTypeReference.cpp | 43 …TSTypeReference"}, {"typeName", typeName_}, {"typeParameters", AstDumper::Optional(typeParams_)}}); in Dump()
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | classProperty.cpp | 51 {"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()
|
D | scriptFunction.cpp | 92 {"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()
|
D | methodDefinition.cpp | 87 {"accessibility", AstDumper::Optional(AstDumper::ModifierToString(modifiers_))}, in Dump() 88 {"abstract", AstDumper::Optional((modifiers_ & ModifierFlags::ABSTRACT) != 0)}, in Dump()
|
/arkcompiler/ets_frontend/es2panda/ir/ |
D | astDump.h | 44 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/ |
D | identifier.cpp | 43 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump() 44 {"optional", AstDumper::Optional(IsOptional())}}); in Dump()
|
/arkcompiler/ets_frontend/es2panda/ |
D | README.md | 10 ## Optional arguments 34 ### Optional arguments
|
/arkcompiler/ets_frontend/es2panda/ir/module/ |
D | importDeclaration.cpp | 37 {"isType", AstDumper::Optional(IsType())}}); in Dump()
|
D | exportNamedDeclaration.cpp | 46 {"isType", AstDumper::Optional(IsType())}}); in Dump()
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | typeGuardsAsAssertions.ts | 26 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/ |
D | variableDeclaration.cpp | 58 {"declare", AstDumper::Optional(declare_)}}); in Dump()
|