Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 4528) sorted by relevance

12345678910>>...182

/third_party/typescript/src/compiler/factory/
DnodeTests.ts4 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 …]
DnodeFactory.ts36 …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…
549 const node = createBaseNode(kind); constant
550 node.decorators = asNodeArray(decorators);
551 node.modifiers = asNodeArray(modifiers);
552 node.transformFlags |=
553 propagateChildrenFlags(node.decorators) |
554 propagateChildrenFlags(node.modifiers);
557 node.symbol = undefined!; // initialized by binder
[all …]
/third_party/typescript_eslint/packages/scope-manager/src/referencer/
DReferencer.ts58 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 …]
DTypeVisitor.ts15 static visit(referencer: Referencer, node: TSESTree.Node): void {
17 typeReferencer.visit(node);
25 node:
33 this.#referencer.scopeManager.nestFunctionTypeScope(node);
34 this.visit(node.typeParameters);
36 for (const param of node.params) {
44 new ParameterDefinition(pattern, node, info.rest),
58 this.visit(node.returnType);
60 this.#referencer.close(node);
64 node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature,
[all …]
/third_party/typescript_eslint/packages/typescript-estree/tests/ast-alignment/
Dutils.ts68 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) {
83 node.returnType = node.typeAnnotation;
[all …]
/third_party/cef/tools/yapf/yapf/yapflib/
Dsplit_penalty.py64 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)
86 def Visit_funcdef(self, node): # pylint: disable=invalid-name argument
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dmove_to_front.h127 Node& node = nodes_.back(); in CreateNode() local
128 node.timestamp = timestamp; in CreateNode()
129 node.value = value; in CreateNode()
130 node.size = 1; in CreateNode()
132 node.height = 1; in CreateNode()
151 Val ValueOf(uint32_t node) const { in ValueOf() argument
152 return nodes_.at(node).value; in ValueOf()
156 uint32_t LeftOf(uint32_t node) const { in LeftOf() argument
157 return nodes_.at(node).left; in LeftOf()
161 uint32_t RightOf(uint32_t node) const { in RightOf() argument
[all …]
/third_party/glib/glib/
Dgnode.c93 #define g_node_free(node) g_slice_free (GNode, node) argument
108 GNode *node = g_node_alloc0 (); in g_node_new() local
109 node->data = data; in g_node_new()
110 return node; in g_node_new()
114 g_nodes_free (GNode *node) in g_nodes_free() argument
116 while (node) in g_nodes_free()
118 GNode *next = node->next; in g_nodes_free()
119 if (node->children) in g_nodes_free()
120 g_nodes_free (node->children); in g_nodes_free()
121 g_node_free (node); in g_nodes_free()
[all …]
Dgtree.c110 static GTreeNode* g_tree_node_balance (GTreeNode *node);
113 static gint g_tree_node_pre_order (GTreeNode *node,
116 static gint g_tree_node_in_order (GTreeNode *node,
119 static gint g_tree_node_post_order (GTreeNode *node,
122 static GTreeNode *g_tree_node_search (GTreeNode *node,
125 static GTreeNode* g_tree_node_rotate_left (GTreeNode *node);
126 static GTreeNode* g_tree_node_rotate_right (GTreeNode *node);
128 static void g_tree_node_check (GTreeNode *node);
136 GTreeNode *node = g_slice_new (GTreeNode); in g_tree_node_new() local
138 node->balance = 0; in g_tree_node_new()
[all …]
/third_party/typescript/src/compiler/transformers/
Dts.ts91 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…
112 function transformSourceFile(node: SourceFile) {
113 if (node.isDeclarationFile) {
114 return node;
117 currentSourceFile = node;
[all …]
Des2018.ts107 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);
125 function visitorWithUnusedExpressionResult(node: Node): VisitResult<Node> {
126 return visitorWorker(node, /*expressionResultIsUnused*/ true);
129 function visitorNoAsyncModifier(node: Node): VisitResult<Node> {
[all …]
/third_party/typescript_eslint/packages/typescript-estree/src/
Dconvert.ts101 node?: ts.Node,
109 if (!node) {
123 node as TSNode,
124 (parent ?? node.parent) as TSNode,
127 this.registerTSNodeInNodeMap(node, result);
141 node:
153 if (node.modifiers && node.modifiers[0].kind === SyntaxKind.ExportKeyword) {
157 this.registerTSNodeInNodeMap(node, result);
159 const exportKeyword = node.modifiers[0];
160 const nextModifier = node.modifiers[1];
[all …]
/third_party/typescript/src/compiler/
DutilitiesPublic.ts257 …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;
277 while (isBindingElement(node.parent)) {
[all …]
DvisitorPublic.ts12 …function visitNode<T extends Node>(node: T, visitor: Visitor | undefined, test?: (node: Node) => b…
22 …on visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node…
24 …on visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node…
25 if (node === undefined || visitor === undefined) {
26 return node;
29 const visited = visitor(node);
30 if (visited === node) {
31 return node;
58 … extends Node>(nodes: NodeArray<T>, visitor: Visitor | undefined, test?: (node: Node) => boolean, …
69 …e>(nodes: NodeArray<T> | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, …
[all …]
Dbinder.ts18 …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 …]
Demitter.ts518 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);
946 function printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string {
949 Debug.assert(isSourceFile(node), "Expected a SourceFile node.");
952 Debug.assert(isIdentifier(node), "Expected an Identifier node.");
[all …]
/third_party/node/deps/acorn/acorn-walk/dist/
Dwalk.js25 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);
37 function ancestor(node, visitors, baseVisitor, state, override) { argument
40 ; }(function c(node, st, override) { argument
41 var type = override || node.type, found = visitors[type];
42 var isNew = node !== ancestors[ancestors.length - 1];
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dno-extra-parens.ts34 node: TSESTree.BinaryExpression | TSESTree.LogicalExpression,
36 const rule = rules.BinaryExpression as (n: typeof node) => void;
39 const isLeftTypeAssertion = util.isTypeAssertion(node.left);
40 const isRightTypeAssertion = util.isTypeAssertion(node.right);
46 ...node,
48 ...node.left,
55 ...node,
57 ...node.right,
63 return rule(node);
66 node: TSESTree.CallExpression | TSESTree.NewExpression,
[all …]
/third_party/nghttp2/src/
Dshrpx_router.cc44 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/typescript/src/services/
DcallHierarchy.ts9 function isNamedExpression(node: Node): node is NamedExpression {
10 return (isFunctionExpression(node) || isClassExpression(node)) && isNamedDeclaration(node);
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);
46 function isPossibleCallHierarchyDeclaration(node: Node) {
47 return isSourceFile(node)
[all …]
Dbreakpoints.ts48 …function spanInNodeIfStartsOnSameLine(node: Node | undefined, otherwiseOnNode?: Node): TextSpan | …
49 …if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile))…
50 return spanInNode(node);
59 function spanInPreviousNode(node: Node): TextSpan | undefined {
60 return spanInNode(findPrecedingToken(node.pos, sourceFile));
63 function spanInNextNode(node: Node): TextSpan | undefined {
64 return spanInNode(findNextToken(node, node.parent, sourceFile));
67 function spanInNode(node: Node | undefined): TextSpan | undefined {
68 if (node) {
69 const { parent } = node;
[all …]
/third_party/python/Lib/
Dast.py65 def _raise_malformed_node(node): argument
67 if lno := getattr(node, 'lineno', None):
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)
73 return node.value
74 def _convert_signed_num(node): argument
75 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):
76 operand = _convert_num(node.operand)
77 if isinstance(node.op, UAdd):
[all …]
/third_party/selinux/libsepol/cil/src/
Dcil_tree.c53 struct cil_tree_node *cil_tree_get_next_path(struct cil_tree_node *node, char **info_kind, uint32_t… in cil_tree_get_next_path() argument
57 if (!node) { in cil_tree_get_next_path()
61 node = node->parent; in cil_tree_get_next_path()
63 while (node) { in cil_tree_get_next_path()
64 if (node->flavor == CIL_NODE && node->data == NULL) { in cil_tree_get_next_path()
65 if (node->cl_head && node->cl_head->data == CIL_KEY_SRC_INFO) { in cil_tree_get_next_path()
66 if (!node->cl_head->next || !node->cl_head->next->next || !node->cl_head->next->next->next) { in cil_tree_get_next_path()
70 *info_kind = node->cl_head->next->data; in cil_tree_get_next_path()
71 rc = cil_string_to_uint32(node->cl_head->next->next->data, hll_line, 10); in cil_tree_get_next_path()
75 *path = node->cl_head->next->next->next->data; in cil_tree_get_next_path()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/
Dscheduler.c351 static void schedule_update_distance(gpir_node *node) in schedule_update_distance() argument
353 if (gpir_node_is_leaf(node)) { in schedule_update_distance()
354 node->sched.dist = 0; in schedule_update_distance()
358 gpir_node_foreach_pred(node, dep) { in schedule_update_distance()
365 if (node->sched.dist < dist) in schedule_update_distance()
366 node->sched.dist = dist; in schedule_update_distance()
370 static bool gpir_is_input_node(gpir_node *node) in gpir_is_input_node() argument
372 gpir_node_foreach_succ(node, dep) { in gpir_is_input_node()
382 static int gpir_get_slots_required(gpir_node *node) in gpir_get_slots_required() argument
384 if (!gpir_is_input_node(node)) in gpir_get_slots_required()
[all …]
/third_party/typescript/src/compiler/transformers/module/
Dsystem.ts52 function transformSourceFile(node: SourceFile) {
53 …if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transform…
54 return node;
57 const id = getOriginalNodeId(node);
58 currentSourceFile = node;
59 enclosingBlockScopedContainer = node;
75 …moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node, resolver, compilerOption…
85 const moduleBodyBlock = createSystemModuleBody(node, dependencyGroups);
102 const moduleName = tryGetModuleNameFromFile(factory, node, host, compilerOptions);
106 node,
[all …]

12345678910>>...182