Home
last modified time | relevance | path

Searched refs:OptionalChain (Results 1 – 17 of 17) sorted by relevance

/third_party/typescript/src/compiler/transformers/
Des2020.ts49 function flattenChain(chain: OptionalChain) {
51 const links: OptionalChain[] = [chain];
123 …function visitOptionalExpression(node: OptionalChain, captureThisArg: boolean, isDelete: boolean):…
/third_party/typescript/src/compiler/
DutilitiesPublic.ts1009 return isPropertyAccessExpression(node) && !!(node.flags & NodeFlags.OptionalChain);
1013 return isElementAccessExpression(node) && !!(node.flags & NodeFlags.OptionalChain);
1017 return isCallExpression(node) && !!(node.flags & NodeFlags.OptionalChain);
1022 return !!(node.flags & NodeFlags.OptionalChain) &&
1054 export function isOutermostOptionalChain(node: OptionalChain) {
1076 return isNonNullExpression(node) && !!(node.flags & NodeFlags.OptionalChain);
Dbinder.ts1724 function bindOptionalChainRest(node: OptionalChain) {
1742 … function bindOptionalChain(node: OptionalChain, trueTarget: FlowLabel, falseTarget: FlowLabel) {
1766 function bindOptionalChainFlow(node: OptionalChain) {
Dparser.ts6036 if (node.flags & NodeFlags.OptionalChain) {
6042 while (isNonNullExpression(expr) && !(expr.flags & NodeFlags.OptionalChain)) {
6045 if (expr.flags & NodeFlags.OptionalChain) {
6048 (node as Mutable<NonNullExpression>).flags |= NodeFlags.OptionalChain;
6155 if (questionDotToken || tag.flags & NodeFlags.OptionalChain) {
6156 (tagExpression as Mutable<Node>).flags |= NodeFlags.OptionalChain;
Dtypes.ts765OptionalChain = 1 << 5, // Chained MemberExpression rooted to a pseudo-OptionalExpression
2771 export type OptionalChain =
Dchecker.ts21930 … function propagateOptionalTypeMarker(type: Type, node: OptionalChain, wasOptional: boolean) {
29560 …return node.flags & NodeFlags.OptionalChain ? checkPropertyAccessChain(node as PropertyAccessChain…
30435 …return node.flags & NodeFlags.OptionalChain ? checkElementAccessChain(node as ElementAccessChain, …
33123 return node.flags & NodeFlags.OptionalChain ? checkNonNullChain(node as NonNullChain) :
34247 if (node.flags & NodeFlags.OptionalChain) {
45675 if (node.questionDotToken || node.flags & NodeFlags.OptionalChain) {
/third_party/typescript/src/services/codefixes/
DfixSpelling.ts56 if (parent.flags & NodeFlags.OptionalChain) {
/third_party/node/deps/v8/src/ast/
Dast.h100 V(OptionalChain) \
1583 class OptionalChain final : public Expression {
1591 explicit OptionalChain(Expression* expression) in OptionalChain() function
3086 OptionalChain* NewOptionalChain(Expression* expression) { in NewOptionalChain()
3087 return zone_->New<OptionalChain>(expression); in NewOptionalChain()
Dprettyprinter.cc390 void CallPrinter::VisitOptionalChain(OptionalChain* node) { in VisitOptionalChain()
1328 void AstPrinter::VisitOptionalChain(OptionalChain* node) { in VisitOptionalChain()
Dast-traversal-visitor.h379 void AstTraversalVisitor<Subclass>::VisitOptionalChain(OptionalChain* expr) { in VisitOptionalChain()
/third_party/typescript/src/compiler/factory/
DnodeFactory.ts2414 node.flags |= NodeFlags.OptionalChain;
2430 …Debug.assert(!!(node.flags & NodeFlags.OptionalChain), "Cannot update a PropertyAccessExpression u…
2472 node.flags |= NodeFlags.OptionalChain;
2486 …Debug.assert(!!(node.flags & NodeFlags.OptionalChain), "Cannot update a ElementAccessExpression us…
2533 node.flags |= NodeFlags.OptionalChain;
2555 …Debug.assert(!!(node.flags & NodeFlags.OptionalChain), "Cannot update a CallExpression using updat…
3250 node.flags |= NodeFlags.OptionalChain;
3260 …Debug.assert(!!(node.flags & NodeFlags.OptionalChain), "Cannot update a NonNullExpression using up…
/third_party/node/deps/v8/src/interpreter/
Dbytecode-generator.cc5347 void BytecodeGenerator::VisitOptionalChain(OptionalChain* expr) { in VisitOptionalChain()
5483 OptionalChain* chain = callee_expr->AsOptionalChain(); in VisitCall()
/third_party/typescript/lib/
Dtypescript.d.ts521 OptionalChain = 32, enumerator
1343 export type OptionalChain = PropertyAccessChain | ElementAccessChain | CallChain | NonNullChain; alias
DtypescriptServices.d.ts521 OptionalChain = 32, enumerator
1343 export type OptionalChain = PropertyAccessChain | ElementAccessChain | CallChain | NonNullChain; alias
Dtsserverlibrary.d.ts521 OptionalChain = 32, enumerator
1343 export type OptionalChain = PropertyAccessChain | ElementAccessChain | CallChain | NonNullChain; alias
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts521 OptionalChain = 32, enumerator
1343 export type OptionalChain = PropertyAccessChain | ElementAccessChain | CallChain | NonNullChain; alias
Dtsserverlibrary.d.ts521 OptionalChain = 32, enumerator
1343 export type OptionalChain = PropertyAccessChain | ElementAccessChain | CallChain | NonNullChain; alias