Home
last modified time | relevance | path

Searched refs:Leaf (Results 1 – 25 of 60) sorted by relevance

123

/third_party/python/Lib/lib2to3/tests/
Dtest_pytree.py35 l1 = pytree.Leaf(100, "foo")
40 l1 = pytree.Leaf(100, "foo")
44 l1 = pytree.Leaf(100, "foo")
46 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1)))
52 l1 = pytree.Leaf(2, 5)
57 l1 = pytree.Leaf(100, "foo")
58 l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0)))
60 l3 = pytree.Leaf(101, "foo")
61 l4 = pytree.Leaf(100, "bar")
66 l1 = pytree.Leaf(100, "foo")
[all …]
Dtest_util.py7 from lib2to3.pytree import Node, Leaf
91 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 2),
92 Leaf(token.NUMBER, 3)],
93 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 3),
94 Leaf(token.NUMBER, 2), Leaf(token.NUMBER, 4)],
95 [Leaf(token.STRING, "b"), Leaf(token.STRING, "j", prefix=" ")]
/third_party/python/Lib/lib2to3/
Dfixer_util.py6 from .pytree import Leaf, Node
17 [keyword, Leaf(token.EQUAL, "="), value])
20 return Leaf(token.LPAR, "(")
23 return Leaf(token.RPAR, ")")
34 target + [Leaf(token.EQUAL, "=", prefix=" ")] + source)
38 return Leaf(token.NAME, name, prefix=prefix)
46 return Leaf(token.COMMA, ",")
50 return Leaf(token.DOT, ".")
68 return Leaf(token.NEWLINE, "\n")
72 return Leaf(token.NEWLINE, "")
[all …]
/third_party/cef/tools/yapf/yapf/yapflib/
Dsubtype_assigner.py111 if isinstance(child, pytree.Leaf) and child.value == '=':
118 if isinstance(child, pytree.Leaf) and child.value == 'or':
125 if isinstance(child, pytree.Leaf) and child.value == 'and':
132 if isinstance(child, pytree.Leaf) and child.value == 'not':
140 if (isinstance(child, pytree.Leaf) and
151 if isinstance(child, pytree.Leaf) and child.value == '*':
158 if isinstance(child, pytree.Leaf) and child.value == '|':
165 if isinstance(child, pytree.Leaf) and child.value == '^':
172 if isinstance(child, pytree.Leaf) and child.value == '&':
179 if isinstance(child, pytree.Leaf) and child.value in {'<<', '>>'}:
[all …]
Dsplit_penalty.py69 if (prev_child and isinstance(prev_child, pytree.Leaf) and
97 if isinstance(node.children[colon_idx], pytree.Leaf):
133 if isinstance(child, pytree.Leaf) and child.value == ',':
144 if isinstance(child, pytree.Leaf) and child.value == '=':
346 if isinstance(child, pytree.Leaf) and child.value == '|':
406 if isinstance(child, pytree.Leaf) and child.value == ',':
452 if isinstance(node, pytree.Leaf):
473 if isinstance(node, pytree.Leaf):
499 if isinstance(tree, pytree.Leaf):
512 if (isinstance(op.children[1], pytree.Leaf) and
[all …]
Dcontinuation_splicer.py37 if isinstance(node, pytree.Leaf):
40 return pytree.Leaf(
Dpytree_utils.py131 if isinstance(tree, pytree.Leaf) and tree.type == token.ENDMARKER:
270 if isinstance(node, pytree.Leaf):
291 if isinstance(node, pytree.Leaf):
Dpytree_unwrapper.py339 if (not isinstance(node.children[-1], pytree.Leaf) or
347 if isinstance(child, pytree.Leaf) and child.value == ',':
359 if isinstance(node, pytree.Leaf):
371 if isinstance(node, pytree.Leaf):
/third_party/python/Lib/lib2to3/fixes/
Dfix_metaclass.py23 from ..fixer_util import syms, Node, Leaf
39 if isinstance(left_side, Leaf) and \
115 if isinstance(left_node, Leaf) and \
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
186 node.insert_child(2, Leaf(token.RPAR, ')'))
188 node.insert_child(2, Leaf(token.LPAR, '('))
198 arglist.append_child(Leaf(token.COMMA, ','))
217 pass_leaf = Leaf(text_type, 'pass')
220 node.append_child(Leaf(token.NEWLINE, '\n'))
226 pass_leaf = Leaf(text_type, 'pass')
[all …]
Dfix_ws_comma.py20 COMMA = pytree.Leaf(token.COMMA, ",")
21 COLON = pytree.Leaf(token.COLON, ":")
Dfix_set_literal.py38 literal = [pytree.Leaf(token.LBRACE, "{")]
40 literal.append(pytree.Leaf(token.RBRACE, "}"))
Dfix_apply.py59 l_newargs = [pytree.Leaf(token.STAR, "*"), args]
62 pytree.Leaf(token.DOUBLESTAR, "**"),
Dfix_print.py58 if args and args[0] == pytree.Leaf(token.RIGHTSHIFT, ">>"):
82 pytree.Leaf(token.EQUAL, "="),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp111 BasicBlock *newLeafBlock(CaseRange &Leaf, Value *Val,
333 BasicBlock *LowerSwitch::newLeafBlock(CaseRange &Leaf, Value *Val, in newLeafBlock() argument
344 if (Leaf.Low == Leaf.High) { in newLeafBlock()
347 Leaf.Low, "SwitchLeaf"); in newLeafBlock()
350 if (Leaf.Low == LowerBound) { in newLeafBlock()
352 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock()
354 } else if (Leaf.High == UpperBound) { in newLeafBlock()
356 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in newLeafBlock()
358 } else if (Leaf.Low->isZero()) { in newLeafBlock()
360 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/AArch64/
DAArch64GenGICombiner.inc145 // Leaf name: copy_prop
160 // Leaf name: ptr_add_immed_chain
175 // Leaf name: extending_loads
187 // Leaf name: combine_indexed_load_store
202 // Leaf name: extending_loads
214 // Leaf name: combine_indexed_load_store
229 // Leaf name: extending_loads
241 // Leaf name: combine_indexed_load_store
256 // Leaf name: combine_indexed_load_store
271 // Leaf name: elide_br_by_inverting_cond
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DIntervalMap.h935 using Leaf = IntervalMapImpl::LeafNode<KeyT, ValT, Sizer::LeafSize, Traits>; variable
1161 return NR.get<Leaf>().safeLookup(x, NotFound); in treeSafeLookup()
1171 const unsigned Nodes = RootLeaf::Capacity / Leaf::Capacity + 1; in branchRoot()
1181 NewOffset = distribute(Nodes, rootSize, Leaf::Capacity, nullptr, size, in branchRoot()
1188 Leaf *L = newNode<Leaf>(); in branchRoot()
1197 rootBranch().stop(n) = node[n].template get<Leaf>().stop(size[n]-1); in branchRoot()
1200 rootBranchStart() = node[0].template get<Leaf>().start(0); in branchRoot()
1222 NewOffset = distribute(Nodes, rootSize, Leaf::Capacity, nullptr, Size, in splitRoot()
1278 deleteNode(&Node.get<Leaf>()); in deleteNode()
1331 return branched() ? path.leaf<Leaf>().start(path.leafOffset()) : in unsafeStart()
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dset_state_3_test.dart43 class Leaf extends StatefulWidget {
48 class LeafState extends State<Leaf> {
55 await tester.pumpWidget(Changer(Wrapper(Leaf())));
56 await tester.pumpWidget(Changer(Wrapper(Leaf())));
Dautomatic_keep_alive_test.dart10 class Leaf extends StatefulWidget {
11 const Leaf({ Key key, this.child }) : super(key: key);
17 class _LeafState extends State<Leaf> {
55 final Widget result = Leaf(
237 Leaf(key: GlobalObjectKey<_LeafState>(0), child: Placeholder()),
238 Leaf(key: GlobalObjectKey<_LeafState>(1), child: Placeholder()),
321 Leaf(key: GlobalObjectKey<_LeafState>(0), child: Placeholder()),
322 Leaf(key: GlobalObjectKey<_LeafState>(1), child: Placeholder()),
330 Leaf(key: GlobalObjectKey<_LeafState>(2), child: Placeholder()),
331 Leaf(key: GlobalObjectKey<_LeafState>(3), child: Placeholder()),
[all …]
/third_party/boost/libs/variant/test/
Drecursive_wrapper_move_test.cpp22 struct Leaf { }; struct
25 typedef boost::variant<Leaf, boost::recursive_wrapper<Node>> TreeBase;
31 static Tree Create(Iter /*first*/, Iter /*last*/) { return Leaf{}; } in Create()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrSGX.td18 // ENCLS - Execute an Enclave System Function of Specified Leaf Number
22 // ENCLU - Execute an Enclave User Function of Specified Leaf Number
26 // ENCLV - Execute an Enclave VMM Function of Specified Leaf Number
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTimerTree.cpp187 TimerIdT Leaf = Nodes[StackTop].Interior; in update() local
188 if (Leaf >= LeafTimes.size()) { in update()
189 LeafTimes.resize(Leaf + 1); in update()
190 LeafCounts.resize(Leaf + 1); in update()
192 LeafTimes[Leaf] += Delta; in update()
194 ++LeafCounts[Leaf]; in update()
/third_party/libusb/libusb/os/
Dhaiku_pollfs.cpp117 if (strcmp(path.Leaf(), "hub") == 0) in WatchedEntry()
120 sscanf(path.Leaf(), "%d", &tmp); in WatchedEntry()
123 while (strcmp(parent_path.Leaf(), "usb") != 0) { in WatchedEntry()
124 sscanf(parent_path.Leaf(), "%d", &tmp); in WatchedEntry()
/third_party/flutter/skia/third_party/externals/wuffs/doc/spec/
Drac-spec.md105 exactly one `Leaf Node` contains any given byte offset `di` in the decompressed
149 (pointing to between 1 and 255 child `Node`s) or a `Leaf Node`. There must be
157 Each `Leaf Node` also has 3 `CRange`s (`Primary`, `Secondary` and `Tertiary`),
160 that part of the `DFile` within the `Leaf Node`'s `DRange`.
265 half-open range `[0xC0 .. 0xFE)` is reserved. Otherwise, the child is a `Leaf
278 A child `Leaf Node`'s `STag[a]` and `TTag[a]` values are also called its `Leaf
279 STag` and `Leaf TTag`. It also has:
341 children must be `Branch Node`s and not `Leaf Node`s and that no child's
436 the `Leaf Node` containing the `DOffset` `di`.
445 and `(DOff[a+1] > di)`, then examine `TTag[a]` to see if the child is a `Leaf
[all …]
/third_party/python/Tools/peg_generator/scripts/
Dgrammar_grapher.py34 Leaf,
72 elif isinstance(item, Leaf):
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DCVTypeVisitor.cpp170 TypeLeafKind Leaf; in visitFieldListMemberStream() local
172 if (auto EC = Reader.readEnum(Leaf)) in visitFieldListMemberStream()
176 Record.Kind = Leaf; in visitFieldListMemberStream()

123