Home
last modified time | relevance | path

Searched full:node (Results 1 – 25 of 6175) sorted by relevance

12345678910>>...247

/third_party/node/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/asserts/generated/
Dindex.js280 function assert(type, node, opts) { argument
281 if (!(0, _is.default)(type, node, opts)) {
282 …or(`Expected type "${type}" with option ${JSON.stringify(opts)}, but instead got "${node.type}".`);
286 function assertArrayExpression(node, opts = {}) { argument
287 assert("ArrayExpression", node, opts);
290 function assertAssignmentExpression(node, opts = {}) { argument
291 assert("AssignmentExpression", node, opts);
294 function assertBinaryExpression(node, opts = {}) { argument
295 assert("BinaryExpression", node, opts);
298 function assertInterpreterDirective(node, opts = {}) { argument
[all …]
/third_party/node/tools/node_modules/babel-eslint/node_modules/@babel/generator/lib/generators/
Dexpressions.js40 var n = _interopRequireWildcard(require("../node"));
44 function UnaryExpression(node) { argument
45 …if (node.operator === "void" || node.operator === "delete" || node.operator === "typeof" || node.o…
46 this.word(node.operator);
49 this.token(node.operator);
52 this.print(node.argument, node);
55 function DoExpression(node) { argument
58 this.print(node.body, node);
61 function ParenthesizedExpression(node) { argument
63 this.print(node.expression, node);
[all …]
Dtypescript.js72 function TSTypeAnnotation(node) { argument
75 if (node.optional) this.token("?");
76 this.print(node.typeAnnotation, node);
79 function TSTypeParameterInstantiation(node) { argument
81 this.printList(node.params, node, {});
85 function TSTypeParameter(node) { argument
86 this.word(node.name);
88 if (node.constraint) {
92 this.print(node.constraint, node);
95 if (node.default) {
[all …]
Dflow.js89 function ArrayTypeAnnotation(node) { argument
90 this.print(node.elementType, node);
99 function BooleanLiteralTypeAnnotation(node) { argument
100 this.word(node.value ? "true" : "false");
107 function DeclareClass(node, parent) { argument
116 this._interfaceish(node);
119 function DeclareFunction(node, parent) { argument
127 this.print(node.id, node);
128 this.print(node.id.typeAnnotation.typeAnnotation, node);
130 if (node.predicate) {
[all …]
Dclasses.js26 function ClassDeclaration(node, parent) { argument
28 this.printJoin(node.decorators, node);
31 if (node.declare) {
36 if (node.abstract) {
43 if (node.id) {
45 this.print(node.id, node);
48 this.print(node.typeParameters, node);
50 if (node.superClass) {
54 this.print(node.superClass, node);
55 this.print(node.superTypeParameters, node);
[all …]
Djsx.js22 function JSXAttribute(node) { argument
23 this.print(node.name, node);
25 if (node.value) {
27 this.print(node.value, node);
31 function JSXIdentifier(node) { argument
32 this.word(node.name);
35 function JSXNamespacedName(node) { argument
36 this.print(node.namespace, node);
38 this.print(node.name, node);
41 function JSXMemberExpression(node) { argument
[all …]
Dstatements.js33 function WithStatement(node) { argument
37 this.print(node.object, node);
39 this.printBlock(node);
42 function IfStatement(node) { argument
46 this.print(node.test, node);
49 const needsBlock = node.alternate && t().isIfStatement(getLastStatement(node.consequent));
57 this.printAndIndentOnComments(node.consequent, node);
65 if (node.alternate) {
69 this.printAndIndentOnComments(node.alternate, node);
78 function ForStatement(node) { argument
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dmove_to_front.h47 // 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/node/tools/node_modules/eslint/lib/rules/
Dno-extra-parens.js96 …* Determines whether the given node is a `call` or `apply` method call, invoked directly on a `Fun…
98 * @param {ASTNode} node The node to be checked.
99 * @returns {boolean} True if the node is an immediate `call` or `apply` method call.
102 function isImmediateFunctionPrototypeMethodCall(node) { argument
103 const callNode = astUtils.skipChainExpression(node);
118 * Determines if this rule should be enforced for a node given the current configuration.
119 * @param {ASTNode} node The node to be checked.
120 * @returns {boolean} True if the rule should be enforced for this node.
123 function ruleApplies(node) { argument
124 if (node.type === "JSXElement" || node.type === "JSXFragment") {
[all …]
Dindent-legacy.js302 * @param {ASTNode} node Node violating the indent rule
304 * @param {int} gottenSpaces Indentation space count in the actual node/code
305 * @param {int} gottenTabs Indentation tab count in the actual node/code
307 * @param {boolean} isLastNodeCheck Is the error for last node check
310 function report(node, needed, gottenSpaces, gottenTabs, loc, isLastNodeCheck) { argument
320 …? [node.range[1] - node.loc.end.column, node.range[1] - node.loc.end.column + gottenSpaces + gotte…
321 …: [node.range[0] - node.loc.start.column, node.range[0] - node.loc.start.column + gottenSpaces + g…
324 node, property
333 * Get the actual indent of node
334 * @param {ASTNode|Token} node Node to examine
[all …]
Dno-implicit-coercion.js32 * Checks whether or not a node is a double logical nigating.
33 * @param {ASTNode} node An UnaryExpression node to check.
34 * @returns {boolean} Whether or not the node is a double logical nigating.
36 function isDoubleLogicalNegating(node) { argument
38 node.operator === "!" &&
39 node.argument.type === "UnaryExpression" &&
40 node.argument.operator === "!"
45 * Checks whether or not a node is a binary negating of `.indexOf()` method calling.
46 * @param {ASTNode} node An UnaryExpression node to check.
47 * @returns {boolean} Whether or not the node is a binary negating of `.indexOf()` method calling.
[all …]
Dno-extra-boolean-cast.js53 // Node types which have a test which will coerce values to booleans.
63 * Check if a node is a Boolean function or constructor.
64 * @param {ASTNode} node the node
65 * @returns {boolean} If the node is Boolean function or constructor
67 function isBooleanFunctionOrConstructorCall(node) { argument
70 return (node.type === "CallExpression" || node.type === "NewExpression") &&
71 node.callee.type === "Identifier" &&
72 node.callee.name === "Boolean";
76 * Checks whether the node is a logical expression and that the option is enabled
77 * @param {ASTNode} node the node
[all …]
/third_party/node/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/validators/generated/
Dindex.js280 function isArrayExpression(node, opts) { argument
281 if (!node) return false;
282 const nodeType = node.type;
288 return (0, _shallowEqual.default)(node, opts);
295 function isAssignmentExpression(node, opts) { argument
296 if (!node) return false;
297 const nodeType = node.type;
303 return (0, _shallowEqual.default)(node, opts);
310 function isBinaryExpression(node, opts) { argument
311 if (!node) return false;
[all …]
/third_party/node/deps/acorn/acorn-walk/dist/
Dwalk.js14 // 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 …]
/third_party/node/tools/node_modules/eslint/node_modules/eslint-scope/lib/
Dreferencer.js88 ImportNamespaceSpecifier(node) { argument
89 const local = (node.local || node.id);
92 this.visitImport(local, node);
96 ImportDefaultSpecifier(node) { argument
97 const local = (node.local || node.id);
99 this.visitImport(local, node);
102 ImportSpecifier(node) { argument
103 const local = (node.local || node.id);
105 if (node.name) {
106 this.visitImport(node.name, node);
[all …]
/third_party/glib/glib/
Dgnode.c50 * 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 …]
Dgtree.c57 * To traverse a #GTree, calling a function for each node visited in
91 gpointer key; /* key for this node */
92 gpointer value; /* value stored at this node */
110 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 gpointer 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);
[all …]
/third_party/e2fsprogs/lib/ext2fs/
Drbtree.c25 static void __rb_rotate_left(struct rb_node *node, struct rb_root *root) in __rb_rotate_left() argument
27 struct rb_node *right = node->rb_right; in __rb_rotate_left()
28 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_left()
30 if ((node->rb_right = right->rb_left)) in __rb_rotate_left()
31 ext2fs_rb_set_parent(right->rb_left, node); in __rb_rotate_left()
32 right->rb_left = node; in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
45 ext2fs_rb_set_parent(node, right); in __rb_rotate_left()
48 static void __rb_rotate_right(struct rb_node *node, struct rb_root *root) in __rb_rotate_right() argument
50 struct rb_node *left = node->rb_left; in __rb_rotate_right()
[all …]
/third_party/libxml2/result/pattern/
Dmultiple1 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 …]
/third_party/node/tools/node_modules/babel-eslint/lib/
Danalyze-scope.js53 ArrayPattern(node) { argument
54 node.elements.forEach(this.visit, this);
57 ObjectPattern(node) { argument
58 node.properties.forEach(this.visit, this);
64 visitPattern(node, options, callback) { argument
65 if (!node) {
70 this._checkIdentifierOrVisit(node.typeAnnotation);
71 if (t.isAssignmentPattern(node)) {
72 this._checkIdentifierOrVisit(node.left.typeAnnotation);
75 …// Overwrite `super.visitPattern(node, options, callback)` in order to not visit `ArrayPattern#typ…
[all …]
/third_party/python/Lib/
Dast.py33 Parse the source into an AST node.
53 Safely evaluate an expression node or a string containing a Python
54 expression. The string or node provided may only consist of the following
62 def _raise_malformed_node(node): argument
63 raise ValueError(f'malformed node or string: {node!r}')
64 def _convert_num(node): argument
65 if not isinstance(node, Constant) or type(node.value) not in (int, float, complex):
66 _raise_malformed_node(node)
67 return node.value
68 def _convert_signed_num(node): argument
[all …]
/third_party/node/tools/node_modules/eslint/lib/linter/code-path-analysis/
Dcode-path-analyzer.js24 * Checks whether or not a given node is a `case` node (not `default` node).
25 * @param {ASTNode} node A `SwitchCase` node to check.
26 * @returns {boolean} `true` if the node is a `case` node (not `default` node).
28 function isCaseNode(node) { argument
29 return Boolean(node.test);
35 * @param {string} operator The operator found in the LogicalExpression node
46 * @param {string} operator The operator found in the AssignmentExpression node
54 * Gets the label if the parent node of a given node is a LabeledStatement.
55 * @param {ASTNode} node A node to get.
58 function getLabel(node) { argument
[all …]
/third_party/grpc/src/core/tsi/ssl/session_cache/
Dssl_session_cache.cc52 /// Node for single cached session.
53 class SslSessionLRUCache::Node { class in tsi::SslSessionLRUCache
55 Node(const grpc_slice& key, SslSessionPtr session) : key_(key) { in Node() function in tsi::SslSessionLRUCache::Node
59 ~Node() { grpc_slice_unref_internal(key_); } in ~Node()
62 Node(const Node&) = delete;
63 Node& operator=(const Node&) = delete;
67 /// Returns a copy of the node's cache session.
70 /// Set the \a session (which is moved) for the node.
81 Node* next_ = nullptr;
82 Node* prev_ = nullptr;
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DValidateAST.cpp25 void visitSymbol(TIntermSymbol *node) override;
26 void visitConstantUnion(TIntermConstantUnion *node) override;
27 bool visitSwizzle(Visit visit, TIntermSwizzle *node) override;
28 bool visitBinary(Visit visit, TIntermBinary *node) override;
29 bool visitUnary(Visit visit, TIntermUnary *node) override;
30 bool visitTernary(Visit visit, TIntermTernary *node) override;
31 bool visitIfElse(Visit visit, TIntermIfElse *node) override;
32 bool visitSwitch(Visit visit, TIntermSwitch *node) override;
33 bool visitCase(Visit visit, TIntermCase *node) override;
34 void visitFunctionPrototype(TIntermFunctionPrototype *node) override;
[all …]
/third_party/node/doc/changelogs/
DCHANGELOG_V5.md1 # Node.js 5 ChangeLog
51 around June 2016. Users of v5 should upgrade to [Node.js v6](CHANGELOG_V6.md).
58 This is a security release. All Node.js users should consult the security release summary at https:…
61 …* backport allocUnsafeSlow (Сковорода Никита Андреевич) [#7169](https://github.com/nodejs/node/pul…
62 …* ignore negative allocation lengths (Anna Henningsen) [#7221](https://github.com/nodejs/node/pull…
63 …ort 3a9bfec from v8 upstream (Ben Noordhuis) [nodejs/node-private#40](https://github.com/nodejs/no…
68 …/node/commit/0ca0827b71)] - **(SEMVER-MINOR)** **buffer**: backport allocUnsafeSlow (Сковорода Ник…
69 …com/nodejs/node/commit/27785aeb37)] - **buffer**: ignore negative allocation lengths (Anna Henning…
70 …dejs/node/commit/34b96c1322)] - **deps**: backport 3a9bfec from v8 upstream (Ben Noordhuis) [nodej…
71 …dejs/node/commit/2ebeb82852)] - **test**: fix test-net-* error code check for getaddrinfo(3) (Nata…
[all …]

12345678910>>...247