Home
last modified time | relevance | path

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

1234

/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/typescript/tests/baselines/reference/
DfindAllRefsReExportStarAs.baseline.jsonc5 // import { Leaf } from './exporting';
6 // Leaf.[|hello|]()
102 // import { Leaf } from './exporting';
103 // Leaf./*FIND ALL REFS*/[|hello|]()
194 // import { [|Leaf|] } from './exporting';
195 // [|Leaf|].hello()
198 // export * as /*FIND ALL REFS*/[|Leaf|] from './leafModule';
207 "name": "import Leaf",
222 "text": "Leaf",
253 "name": "import Leaf",
[all …]
/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 …]
Dpytree.py127 while not isinstance(node, Leaf):
317 class Leaf(Base): class
368 return Leaf(self.type, self.value,
411 return Leaf(type, value, context=context)
524 if not isinstance(node, Leaf):
/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, "="),
Dfix_ne.py22 new = pytree.Leaf(token.NOTEQUAL, "!=", prefix=node.prefix)
/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/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/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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DCodeViewYAMLTypes.cpp675 Result.Leaf = Impl; in fromCodeViewRecordImpl()
697 return Leaf->toCodeViewRecord(Serializer); in toCodeViewRecord()
718 Obj.Leaf = std::make_shared<LeafRecordImpl<ConcreteType>>(Kind); in mapLeafRecordImpl()
721 Obj.Leaf->map(IO); in mapLeafRecordImpl()
723 IO.mapRequired(Class, *Obj.Leaf); in mapLeafRecordImpl()
729 Kind = Obj.Leaf->Kind; in mapping()
801 for (const auto &Leaf : Leafs) { in toDebugT() local
802 CVType T = Leaf.Leaf->toCodeViewRecord(TS); in toDebugT()
/third_party/typescript/scripts/
DgenerateLocalizedDiagnosticMessages.mjs177 <Item ItemId=";${key}" ItemType="0" PsrId="306" Leaf="true">
196 <Item ItemId=";String Table" ItemType="0" PsrId="306" Leaf="false">
198 <Item ItemId=";Strings" ItemType="0" PsrId="306" Leaf="false">

1234