Home
last modified time | relevance | path

Searched refs:treeType (Results 1 – 3 of 3) sorted by relevance

/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treebuilders/
D__init__.py36 def getTreeBuilder(treeType, implementation=None, **kwargs): argument
55 treeType = treeType.lower()
56 if treeType not in treeBuilderCache:
57 if treeType == "dom":
65 elif treeType == "lxml":
67 treeBuilderCache[treeType] = etree_lxml.TreeBuilder
68 elif treeType == "etree":
75 raise ValueError("""Unrecognised treebuilder "%s" """ % treeType)
76 return treeBuilderCache.get(treeType)
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treewalkers/
D__init__.py24 def getTreeWalker(treeType, implementation=None, **kwargs): argument
42 treeType = treeType.lower()
43 if treeType not in treeWalkerCache:
44 if treeType in ("dom", "pulldom"):
45 name = "%s.%s" % (__name__, treeType)
48 treeWalkerCache[treeType] = mod.TreeWalker
49 elif treeType == "genshi":
51 treeWalkerCache[treeType] = genshistream.TreeWalker
52 elif treeType == "lxml":
54 treeWalkerCache[treeType] = lxmletree.TreeWalker
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dtree.py717 def getFirstChildWithType(self, treeType): argument
719 if child.getType() == treeType: