| /third_party/typescript/src/compiler/factory/ |
| D | nodeTests.ts | 4 export function isNumericLiteral(node: Node): node is NumericLiteral { 5 return node.kind === SyntaxKind.NumericLiteral; 8 export function isBigIntLiteral(node: Node): node is BigIntLiteral { 9 return node.kind === SyntaxKind.BigIntLiteral; 12 export function isStringLiteral(node: Node): node is StringLiteral { 13 return node.kind === SyntaxKind.StringLiteral; 16 export function isJsxText(node: Node): node is JsxText { 17 return node.kind === SyntaxKind.JsxText; 20 export function isRegularExpressionLiteral(node: Node): node is RegularExpressionLiteral { 21 return node.kind === SyntaxKind.RegularExpressionLiteral; [all …]
|
| D | nodeFactory.ts | 9 // Disables the node converters for the factory. 13 // Do not set an `original` pointer when updating a node. enumerator 20 * @param baseFactory A `BaseNodeFactory` used to create the base `Node` objects. 26 … // Lazily load the parenthesizer, node converters, and some factory methods until they are used. 36 …Node | undefined; }>(kind: T["kind"]) => (node: T, type: T["type"]) => updateJSDocUnaryTypeWorker<… 38 …Tag>(kind: T["kind"]) => (node: T, tagName: Identifier | undefined, comment?: string) => updateJSD… 40 …) => (node: T, tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: st… 515 …function createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): Nod… 528 … // Since the element list of a node array is typically created by starting with an empty array and 540 function createBaseNode<T extends Node>(kind: T["kind"]) { [all …]
|
| D | emitNode.ts | 3 * Associates a node with the current transformation, initializing 7 export function getOrCreateEmitNode(node: Node): EmitNode { 8 if (!node.emitNode) { 9 if (isParseTreeNode(node)) { 11 // parse tree node we are annotating. This allows us to clean them up after 13 if (node.kind === SyntaxKind.SourceFile) { 14 return node.emitNode = { annotatedNodes: [node] } as EmitNode; 17 …const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail(… 18 getOrCreateEmitNode(sourceFile).annotatedNodes!.push(node); 21 node.emitNode = {} as EmitNode; [all …]
|
| /third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
| D | move_to_front.h | 47 // node: handle used internally to access node data. 48 // size: size of the subtree of a node (including the node). 49 // height: distance from a node to the farthest leaf. 56 // Create NIL node. 57 nodes_.emplace_back(Node()); 97 // with DeprecateValue(). But handles are recycled when a node is repositioned. 99 // Internal tree data structure node. 100 struct Node { struct 104 // The size of the node's subtree, including the node. 105 // SizeOf(LeftOf(node)) + SizeOf(RightOf(node)) + 1. [all …]
|
| /third_party/typescript/src/compiler/ |
| D | visitorPublic.ts | 5 * Visits a Node using the supplied visitor, possibly returning a new Node in its place. 7 * @param node The Node to visit. 8 * @param visitor The callback used to visit the Node. 9 * @param test A callback to execute to verify the Node is valid. 10 * @param lift An optional callback to execute to lift a NodeArray into a valid Node. 12 …ion visitNode<T extends Node>(node: T, visitor: Visitor | undefined, test?: (node: Node) => boolea… 15 * Visits a Node using the supplied visitor, possibly returning a new Node in its place. 17 * @param node The Node to visit. 18 * @param visitor The callback used to visit the Node. 19 * @param test A callback to execute to verify the Node is valid. [all …]
|
| D | utilitiesPublic.ts | 248 for (let current: Node = d; current; current = current.parent) { 257 …export function isParameterPropertyDeclaration(node: Node, parent: Node): node is ParameterPropert… 258 …return hasSyntacticModifier(node, ModifierFlags.ParameterPropertyModifier) && parent.kind === Synt… 261 export function isEmptyBindingPattern(node: BindingName): node is BindingPattern { 262 if (isBindingPattern(node)) { 263 return every(node.elements, isEmptyBindingElement); 268 export function isEmptyBindingElement(node: BindingElement): boolean { 269 if (isOmittedExpression(node)) { 272 return isEmptyBindingPattern(node.name); 276 let node = binding.parent; [all …]
|
| D | emitter.ts | 518 function collectLinkedAliases(node: Node) { 519 if (isExportAssignment(node)) { 520 if (node.expression.kind === SyntaxKind.Identifier) { 521 … resolver.collectLinkedAliases(node.expression as Identifier, /*setVisibility*/ true); 525 else if (isExportSpecifier(node)) { 526 … resolver.collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true); 529 forEachChild(node, collectLinkedAliases); 926 let lastNode: Node | undefined; 927 let lastSubstitution: Node | undefined; 946 function printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string { [all …]
|
| D | binder.ts | 18 …export function getModuleInstanceState(node: ModuleDeclaration, visited?: ESMap<number, ModuleInst… 19 if (node.body && !node.body.parent) { 21 setParent(node.body, node); 22 setParentRecursive(node.body, /*incremental*/ false); 24 …return node.body ? getModuleInstanceStateCached(node.body, visited) : ModuleInstanceState.Instanti… 27 …function getModuleInstanceStateCached(node: Node, visited = new Map<number, ModuleInstanceState | … 28 const nodeId = getNodeId(node); 33 const result = getModuleInstanceStateWorker(node, visited); 38 …function getModuleInstanceStateWorker(node: Node, visited: ESMap<number, ModuleInstanceState | und… 40 switch (node.kind) { [all …]
|
| /third_party/node/deps/acorn/acorn-walk/dist/ |
| D | walk.js | 14 // Expression: function(node) { ... } 17 // to do something with all expressions. All Parser API node types 18 // can be used to identify node types, as well as Expression and 25 function simple(node, visitors, baseVisitor, state, override) { argument 27 ; }(function c(node, st, override) { argument 28 var type = override || node.type, found = visitors[type]; 29 baseVisitor[type](node, st, c); 30 if (found) { found(node, st); } 31 })(node, state, override); 35 // current node) and passes them to the callback as third parameter [all …]
|
| D | walk.mjs | 8 // Expression: function(node) { ... } 11 // to do something with all expressions. All Parser API node types 12 // can be used to identify node types, as well as Expression and 19 function simple(node, visitors, baseVisitor, state, override) { argument 21 ; }(function c(node, st, override) { argument 22 var type = override || node.type, found = visitors[type]; 23 baseVisitor[type](node, st, c); 24 if (found) { found(node, st); } 25 })(node, state, override); 29 // current node) and passes them to the callback as third parameter [all …]
|
| /third_party/typescript_eslint/packages/typescript-estree/src/ |
| D | convert.ts | 1 // There's lots of funny stuff due to the typing of ts.Node 25 } from './node-utils'; 58 tsNodeToESTreeNodeMap: ParserWeakMap<TSNode, TSESTree.Node>; 71 * Converts a TypeScript node into an ESTree node 93 * Converts a TypeScript node into an ESTree node. 94 * @param node the child ts.Node 98 * @returns the converted ESTree node 101 node?: ts.Node, 102 parent?: ts.Node, 109 if (!node) { [all …]
|
| /third_party/typescript_eslint/packages/scope-manager/src/referencer/ |
| D | Referencer.ts | 58 public close(node: TSESTree.Node): void { 59 while (this.currentScope(true) && node === this.currentScope().block) { 163 node: TSESTree.ClassDeclaration | TSESTree.ClassExpression, 165 if (node.type === AST_NODE_TYPES.ClassDeclaration && node.id) { 167 node.id, 168 new ClassNameDefinition(node.id, node), 172 node.decorators?.forEach(d => this.visit(d)); 174 this.scopeManager.nestClassScope(node); 176 if (node.id) { 180 node.id, [all …]
|
| /third_party/typescript_eslint/packages/experimental-utils/src/ts-eslint-scope/ |
| D | Referencer.ts | 16 parent?: TSESTree.Node; 19 close(node: TSESTree.Node): void; 30 node: TSESTree.Node, 34 visitFunction(node: TSESTree.Node): void; 35 visitClass(node: TSESTree.Node): void; 36 visitProperty(node: TSESTree.Node): void; 37 visitForIn(node: TSESTree.Node): void; 41 node: TSESTree.Node, 45 AssignmentExpression(node: TSESTree.Node): void; 46 CatchClause(node: TSESTree.Node): void; [all …]
|
| /third_party/python/Lib/ |
| D | ast.py | 36 Parse the source into an AST node. 56 Safely evaluate an expression node or a string containing a Python 57 expression. The string or node provided may only consist of the following 65 def _raise_malformed_node(node): argument 66 msg = "malformed node or string" 67 if lno := getattr(node, 'lineno', None): 69 raise ValueError(msg + f': {node!r}') 70 def _convert_num(node): argument 71 if not isinstance(node, Constant) or type(node.value) not in (int, float, complex): 72 _raise_malformed_node(node) [all …]
|
| /third_party/glib/glib/ |
| D | gnode.c | 50 * To insert a node into a tree use g_node_insert(), 53 * To create a new node and insert it into a tree use 58 * To reverse the children of a node use g_node_reverse_children(). 60 * To find a node use g_node_get_root(), g_node_find(), 66 * To get information about a node or tree use G_NODE_IS_LEAF(), 70 * To traverse a tree, calling a function for each node visited in the 73 * To remove a node or subtree from a tree use g_node_unlink() or 79 * @data: contains the actual data of the node. 80 * @next: points to the node's next sibling (a sibling is another 82 * @prev: points to the node's previous sibling. [all …]
|
| /third_party/typescript/src/services/ |
| D | callHierarchy.ts | 8 /** Indictates whether a node is named function or class expression. */ 9 function isNamedExpression(node: Node): node is NamedExpression { 10 return (isFunctionExpression(node) || isClassExpression(node)) && isNamedDeclaration(node); 19 …/** Indicates whether a node is a function, arrow, or class expression assigned to a constant vari… 20 function isConstNamedExpression(node: Node): node is ConstNamedExpression { 21 return (isFunctionExpression(node) || isArrowFunction(node) || isClassExpression(node)) 22 && isVariableDeclaration(node.parent) 23 && node === node.parent.initializer 24 && isIdentifier(node.parent.name) 25 && !!(getCombinedNodeFlags(node.parent) & NodeFlags.Const); [all …]
|
| /third_party/cef/tools/yapf/yapf/yapflib/ |
| D | split_penalty.py | 53 tree: the top-level pytree node to annotate with penalties. 64 def Visit_import_as_names(self, node): # pyline: disable=invalid-name argument 66 self.DefaultNodeVisit(node) 68 for child in node.children: 74 def Visit_classdef(self, node): # pylint: disable=invalid-name argument 78 _SetUnbreakable(node.children[1]) 79 if len(node.children) > 4: 81 _SetUnbreakable(node.children[2]) 83 _SetUnbreakable(node.children[-2]) 84 self.DefaultNodeVisit(node) [all …]
|
| /third_party/typescript_eslint/packages/experimental-utils/src/ast-utils/ |
| D | predicates.ts | 26 * Returns true if and only if the node represents: foo?.() or foo.bar?.() 29 node: TSESTree.Node, 30 ): node is TSESTree.CallExpression & { optional: true } { 32 node.type === AST_NODE_TYPES.CallExpression && 35 node.optional 40 * Returns true if and only if the node represents logical OR 43 node: TSESTree.Node, 44 ): node is TSESTree.LogicalExpression & { operator: '||' } { 46 node.type === AST_NODE_TYPES.LogicalExpression && node.operator === '||' 51 * Checks if a node is a type assertion: [all …]
|
| /third_party/typescript/src/compiler/transformers/ |
| D | es2018.ts | 72 /** A set of node IDs for generated super accessors. */ 82 …* Sets the `HierarchyFacts` for this node prior to visiting this node's subtree, returning the fac… 93 * Restores the `HierarchyFacts` for this node's ancestor after visiting this node's 107 function transformSourceFile(node: SourceFile) { 108 if (node.isDeclarationFile) { 109 return node; 112 currentSourceFile = node; 113 const visited = visitSourceFile(node); 121 function visitor(node: Node): VisitResult<Node> { 122 return visitorWorker(node, /*expressionResultIsUnused*/ false); [all …]
|
| D | es2017.ts | 48 /** A set of node IDs for generated super accessors (variable statements). */ 63 function transformSourceFile(node: SourceFile) { 64 if (node.isDeclarationFile) { 65 return node; 69 …setContextFlag(ContextFlags.HasLexicalThis, !isEffectiveStrictModeSourceFile(node, compilerOptions… 70 const visited = visitEachChild(node, visitor, context); 102 function visitDefault(node: Node): VisitResult<Node> { 103 return visitEachChild(node, visitor, context); 106 function visitor(node: Node): VisitResult<Node> { 107 if ((node.transformFlags & TransformFlags.ContainsES2017) === 0) { [all …]
|
| D | ts.ts | 68 let currentScopeFirstDeclarationsOfName: UnderscoreEscapedMap<Node> | undefined; 91 function transformSourceFileOrBundle(node: SourceFile | Bundle) { 92 if (node.kind === SyntaxKind.Bundle) { 93 return transformBundle(node); 95 return transformSourceFile(node); 98 function transformBundle(node: Bundle) { 99 …return factory.createBundle(node.sourceFiles.map(transformSourceFile), mapDefined(node.prepends, p… 110 * @param node A SourceFile node. 112 function transformSourceFile(node: SourceFile) { 113 if (node.isDeclarationFile) { [all …]
|
| /third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
| D | no-explicit-any.ts | 57 … * Checks if the node is an arrow function, function/constructor declaration or function expression 58 * @param node the node to be validated. 59 * @returns true if the node is any kind of function declaration or expression 62 function isNodeValidFunction(node: TSESTree.Node): boolean { 74 ].includes(node.type); 78 * Checks if the node is a rest element child node of a function 79 * @param node the node to be validated. 80 * @returns true if the node is a rest element child node of a function 83 function isNodeRestElementInFunction(node: TSESTree.Node): boolean { 85 node.type === AST_NODE_TYPES.RestElement && [all …]
|
| /third_party/typescript_eslint/packages/typescript-estree/tests/ast-alignment/ |
| D | utils.ts | 14 …* - Babylon wraps the "Program" node in an extra "File" node, normalize this for simplicity for no… 68 TSCallSignatureDeclaration(node) { 69 if (node.typeAnnotation) { 70 node.returnType = node.typeAnnotation; 71 delete node.typeAnnotation; 73 if (node.parameters) { 74 node.params = node.parameters; 75 delete node.parameters; 81 TSConstructSignatureDeclaration(node) { 82 if (node.typeAnnotation) { [all …]
|
| /third_party/nghttp2/src/ |
| D | shrpx_router.cc | 44 RNode *find_next_node(const RNode *node, char c) { in find_next_node() argument 45 auto itr = std::lower_bound(std::begin(node->next), std::end(node->next), c, in find_next_node() 48 if (itr == std::end(node->next) || (*itr)->s[0] != c) { in find_next_node() 57 void add_next_node(RNode *node, std::unique_ptr<RNode> new_node) { in add_next_node() argument 58 auto itr = std::lower_bound(std::begin(node->next), std::end(node->next), in add_next_node() 62 node->next.insert(itr, std::move(new_node)); in add_next_node() 66 void Router::add_node(RNode *node, const char *pattern, size_t patlen, in add_node() argument 71 add_next_node(node, std::move(new_node)); in add_node() 82 auto node = &root_; in add_route() local 86 auto next_node = find_next_node(node, pattern[i]); in add_route() [all …]
|
| /third_party/libxml2/result/pattern/ |
| D | multiple | 1 Node /c/b[1]/a[1] matches pattern a 2 Node /c/b[1]/a[2] matches pattern a 3 Node /c/c/b/a[1] matches pattern a 4 Node /c/c/b/a[2] matches pattern a 5 Node /c/b[2]/a[1] matches pattern a 6 Node /c/b[2]/a[2] matches pattern a 7 Node /c/b[1] matches pattern b 8 Node /c/c/b matches pattern b 9 Node /c/b[2] matches pattern b 10 Node /c matches pattern c [all …]
|