Home
last modified time | relevance | path

Searched refs:ancestor (Results 1 – 25 of 218) sorted by relevance

123456789

/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dreturn-await.ts61 let ancestor = node.parent;
63 while (ancestor && !ts.isFunctionLike(ancestor)) {
64 if (tsutils.isTryStatement(ancestor)) {
68 ancestor = ancestor.parent;
75 let ancestor = node.parent;
77 while (ancestor && !ts.isFunctionLike(ancestor)) {
78 if (tsutils.isCatchClause(ancestor)) {
82 ancestor = ancestor.parent;
89 let ancestor = node.parent;
91 while (ancestor && !ts.isFunctionLike(ancestor)) {
[all …]
Dexplicit-module-boundary-types.ts391 let ancestor = node.parent;
395 ancestor?.type === AST_NODE_TYPES.ReturnStatement;
397 ancestor?.type === AST_NODE_TYPES.ArrowFunctionExpression &&
398 ancestor.body.type !== AST_NODE_TYPES.BlockStatement;
403 while (ancestor) {
404 switch (ancestor.type) {
408 if (ancestor.returnType) {
417 if (ancestor.id.typeAnnotation) {
423 ancestor = ancestor.parent;
/third_party/boost/boost/pending/detail/
Ddisjoint_sets.hpp34 Vertex ancestor = get(parent, v); in find_representative_with_full_compression() local
35 while (ancestor != v) in find_representative_with_full_compression()
37 v = ancestor; in find_representative_with_full_compression()
38 ancestor = get(parent, v); in find_representative_with_full_compression()
41 while (ancestor != v) in find_representative_with_full_compression()
43 put(parent, old, ancestor); in find_representative_with_full_compression()
47 return ancestor; in find_representative_with_full_compression()
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Ddebug.dart11 /// Asserts that the given context has a [Material] ancestor.
31 'widget ancestor.'
47 'The specific widget that could not find a Material ancestor was:'
57 for (Widget ancestor in ancestors)
58 message.write('\n $ancestor');
62 'ancestors, let alone a "Material" ancestor.'
73 /// Asserts that the given context has a [Localizations] ancestor that contains
94 'to be provided by a Localizations widget ancestor.'
107 'The specific widget that could not find a MaterialLocalizations ancestor was:'
117 for (Widget ancestor in ancestors)
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Davailable_instructions.cpp160 for (auto* ancestor = block; true; in operator []() local
161 ancestor = dominator_analysis->ImmediateDominator(ancestor)) { in operator []()
163 available_instructions_.num_available_at_block_entry_.at(ancestor); in operator []()
170 available_instructions_.generated_by_block_.at(ancestor); in operator []()
182 assert(ancestor != &*function->begin() && in operator []()
/third_party/spirv-tools/source/fuzz/
Davailable_instructions.cpp160 for (auto* ancestor = block; true; in operator []() local
161 ancestor = dominator_analysis->ImmediateDominator(ancestor)) { in operator []()
163 available_instructions_.num_available_at_block_entry_.at(ancestor); in operator []()
170 available_instructions_.generated_by_block_.at(ancestor); in operator []()
182 assert(ancestor != &*function->begin() && in operator []()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Davailable_instructions.cpp160 for (auto* ancestor = block; true; in operator []() local
161 ancestor = dominator_analysis->ImmediateDominator(ancestor)) { in operator []()
163 available_instructions_.num_available_at_block_entry_.at(ancestor); in operator []()
170 available_instructions_.generated_by_block_.at(ancestor); in operator []()
182 assert(ancestor != &*function->begin() && in operator []()
/third_party/typescript/src/server/
DpackageJsonCache.ts29 forEachAncestorDirectory(directory, ancestor => {
30 if (directoryHasPackageJson(ancestor) !== Ternary.Maybe) {
33 const packageJsonFileName = host.toPath(combinePaths(ancestor, "package.json"));
38 directoriesWithoutPackageJson.set(ancestor, true);
/third_party/typescript/src/services/codefixes/
DaddMissingAwait.ts228 return node.kind & NodeFlags.AwaitContext || !!findAncestor(node, ancestor =>
229ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor ||
230 isBlock(ancestor) && (
231 ancestor.parent.kind === SyntaxKind.FunctionDeclaration ||
232 ancestor.parent.kind === SyntaxKind.FunctionExpression ||
233 ancestor.parent.kind === SyntaxKind.ArrowFunction ||
234 ancestor.parent.kind === SyntaxKind.MethodDeclaration));
/third_party/libxml2/test/XPath/tests/
Dsimplebase12 /child::EXAMPLE/attribute::prop1/ancestor-or-self::node()
13 /child::EXAMPLE/attribute::prop1/ancestor-or-self::*
15 /descendant::p/ancestor::chapter
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dscroll_physics.dart60 /// If [parent] is null then return ancestor, otherwise recursively build a
61 /// ScrollPhysics that has [ancestor] as its parent.
66 /// FooScrollPhysics applyTo(ScrollPhysics ancestor) {
67 /// return FooScrollPhysics(parent: buildParent(ancestor));
71 ScrollPhysics buildParent(ScrollPhysics ancestor) => parent?.applyTo(ancestor) ?? ancestor;
74 /// [runtimeType] where the [parent] has been replaced with the [ancestor].
77 /// is applied recursively and ancestor will appear at the end of the
81 /// [ScrollPhysics] instance and some of the behaviors from [ancestor].
99 ScrollPhysics applyTo(ScrollPhysics ancestor) {
100 return ScrollPhysics(parent: buildParent(ancestor));
[all …]
Ddebug.dart162 /// Asserts that the given context has a [Table] ancestor.
180 '${context.widget.runtimeType} widgets require a Table widget ancestor.\n'
181 'The specific widget that could not find a Table ancestor was:\n'
192 /// Asserts that the given context has a [MediaQuery] ancestor.
211 '${context.widget.runtimeType} widgets require a MediaQuery widget ancestor.\n'
212 'The specific widget that could not find a MediaQuery ancestor was:\n'
225 /// Asserts that the given context has a [Directionality] ancestor.
244 '${context.widget.runtimeType} widgets require a Directionality widget ancestor.\n'
245 'The specific widget that could not find a Directionality ancestor was:\n'
Dframework.dart907 /// and other elements in the tree (e.g. if you have provided an ancestor
1179 /// ancestor with a pointer to a descendant's [RenderObject]).
1439 /// ancestor is a RenderObjectWidget that wraps a RenderObject that can handle
1443 bool debugIsValidAncestor(RenderObjectWidget ancestor) {
1446 return ancestor is T;
1451 /// returned false for an ancestor, or when there are extraneous
1452 /// [ParentDataWidget]s in the ancestor chain.
1459 '$description has no $T ancestor at all.'
1465 '$description has a $T ancestor, but there are other widgets between them:'
1467 for (Widget ancestor in badAncestors) {
[all …]
/third_party/typescript/src/testRunner/unittests/tsserver/
DcachingFileSystemInformation.ts190 forEachAncestorDirectory(getDirectoryPath(root.path), ancestor => {
192 combinePaths(ancestor, `${module}.ts`),
193 combinePaths(ancestor, `${module}.tsx`),
194 combinePaths(ancestor, `${module}.d.ts`),
195 combinePaths(ancestor, `${module}.ets`)
198 forEachAncestorDirectory(getDirectoryPath(root.path), ancestor => {
200 combinePaths(ancestor, `${module}.js`),
201 combinePaths(ancestor, `${module}.jsx`)
209 forEachAncestorDirectory(getDirectoryPath(root.path), ancestor => {
211 result.set(ancestor, 2);
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DDiscoverEnclosingFunctionTraverser.cpp23 while (TIntermNode *ancestor = getAncestorNode(height)) in discoverEnclosingFunction() local
25 if (TIntermFunctionDefinition *funcDefNode = ancestor->getAsFunctionDefinition()) in discoverEnclosingFunction()
/third_party/libxml2/test/c14n/1-1-without-comments/
Dexample-7.xpath8 count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
Dexample-8.xpath8 count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
/third_party/libxml2/test/c14n/without-comments/
Dexample-7.xpath8 count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
/third_party/libxml2/test/c14n/with-comments/
Dexample-7.xpath8 count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
/third_party/typescript/src/services/
DcallHierarchy.ts232 const ancestor = findAncestor(location, isValidCallHierarchyDeclaration); constant
233 … return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);
240 const ancestor = findAncestor(location.parent, isValidCallHierarchyDeclaration); constant
241 … return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);
306 const ancestor = findAncestor(node, isValidCallHierarchyDeclaration) || sourceFile; constant
307 return { declaration: ancestor, range: createTextRangeFromNode(node, sourceFile) };
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/opt/post/
Dgenerator_node_pass.cc84 auto ancestor = repeat_ancestors_[i - 1]; in Visit() local
85 RETURN_IF_NOT_OK(repeat_ancestors_[i]->AddResetAncestor(ancestor)); in Visit()
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dfinders.dart57 return find.ancestor(
124 return find.ancestor(
261 /// find.ancestor(
272 Finder ancestor({ Finder of, Finder matching, bool matchRoot = false }) {
658 this.ancestor,
664 final Finder ancestor;
671 return '${descendant.description} in the subtree(s) beginning with ${ancestor.description}';
672 return '${descendant.description} that has ancestor(s) with ${ancestor.description}';
682 final Iterable<Element> ancestorElements = ancestor.evaluate();
693 …_AncestorFinder(this.descendant, this.ancestor, { this.matchRoot = false }) : super(skipOffstage: …
[all …]
/third_party/libxml2/result/XPath/tests/
Dsimplebase89 Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::node()
105 Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::*
124 Expression: /descendant::p/ancestor::chapter
/third_party/glib/gio/
Dgwin32registrykey.c392 GWin32RegistryKey *ancestor; member
454 g_clear_object (&priv->ancestor); in g_win32_registry_key_dispose()
559 HKEY ancestor; in g_win32_registry_key_initable_init() local
592 ancestor = HKEY_CLASSES_ROOT; in g_win32_registry_key_initable_init()
594 ancestor = HKEY_LOCAL_MACHINE; in g_win32_registry_key_initable_init()
596 ancestor = HKEY_CURRENT_USER; in g_win32_registry_key_initable_init()
598 ancestor = HKEY_CURRENT_CONFIG; in g_win32_registry_key_initable_init()
600 ancestor = HKEY_CURRENT_USER_LOCAL_SETTINGS; in g_win32_registry_key_initable_init()
602 ancestor = HKEY_USERS; in g_win32_registry_key_initable_init()
604 ancestor = HKEY_PERFORMANCE_DATA; in g_win32_registry_key_initable_init()
[all …]
/third_party/libxml2/result/regexp/
Dxpath16 ancestor::a: Ok
32 ancestor::a: Fail

123456789