Home
last modified time | relevance | path

Searched +full:visitor +full:- +full:keys (Results 1 – 25 of 266) sorted by relevance

1234567891011

/external/flatbuffers/rust/flexbuffers/src/reader/
Dde.rs7 // https://www.apache.org/licenses/LICENSE-2.0
19 VariantAccess, Visitor,
31 fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { in fmt()
40 fn custom<T>(msg: T) -> Self in custom()
49 fn from(e: super::Error) -> Self { in from()
60 ) -> Result<Option<<T as DeserializeSeed<'de>>::Value>, Self::Error> in next_element_seed()
71 fn size_hint(&self) -> Option<usize> { in size_hint()
85 fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant), Self::Error> in variant_seed()
95 keys: ReaderIterator<&'de [u8]>, field
102 fn next_key_seed<K>(&mut self, seed: K) -> Result<Option<K::Value>, Self::Error> in next_key_seed()
[all …]
/external/fonttools/Lib/fontTools/misc/
Dvisitor.py1 """Generic visitor pattern implementation for Python objects."""
6 class Visitor(object): class
11 assert celf != Visitor, "Subclass Visitor instead."
26 "Oops, class '%s' has visitor function for '%s' defined already."
71 """Called to visit an object. This function loops over all non-private
72 attributes of the objects and calls any user-registered (via
75 If there is no user-registered visit function, of if there is and it
77 visitor.defaultStop is False (default), then the visitor will proceed
80 keys = sorted(vars(obj).keys())
83 for key in keys:
[all …]
/external/guice/extensions/grapher/test/com/google/inject/grapher/
DTransitiveDependencyVisitorTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
48 private TransitiveDependencyVisitor visitor; field in TransitiveDependencyVisitorTest
54 visitor = new TransitiveDependencyVisitor(); in setUp()
59 Collection<Key<?>> dependencies = visitor.visit((ConstructorBinding<?>) binding); in testVisitConstructor()
68 Collection<Key<?>> dependencies = visitor.visit((ConvertedConstantBinding<?>) binding); in testVisitConvertedConstant()
75 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance()
77 // Dependencies will only be on the field- and method-injected classes. in testVisitInstance()
83 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance_instanceHasDependencies()
92 Collection<Key<?>> dependencies = visitor.visit((LinkedKeyBinding<?>) binding); in testVisitLinkedKey()
100 Collection<Key<?>> dependencies = visitor.visit((ProviderBinding<?>) binding); in testVisitProviderBinding()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/flow/
DMethodProbesVisitor.java5 * http://www.eclipse.org/legal/epl-2.0
7 * SPDX-License-Identifier: EPL-2.0
10 * Marc R. Hoffmann - initial API and implementation
27 * New visitor instance without delegate visitor.
34 * New visitor instance that delegates to the given visitor.
37 * optional next visitor in chain
135 * @param keys
136 * the values of the keys.
140 * <code>keys[i]</code> key.
149 final int[] keys, final Label[] labels, final IFrame frame) { in visitLookupSwitchInsnWithProbes() argument
[all …]
DMethodProbesAdapter.java5 * http://www.eclipse.org/legal/epl-2.0
7 * SPDX-License-Identifier: EPL-2.0
10 * Marc R. Hoffmann - initial API and implementation
25 * Adapter that creates additional visitor events for probes to be inserted into
42 * visitor to delegate to
77 // different label to define the range of the try-catch block. in getTryCatchLabel()
144 public void visitLookupSwitchInsn(final Label dflt, final int[] keys, in visitLookupSwitchInsn() argument
147 probesVisitor.visitLookupSwitchInsnWithProbes(dflt, keys, labels, in visitLookupSwitchInsn()
150 probesVisitor.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
/external/rust/crates/toml/src/
Dtable.rs12 /// [lexicographic order](https://doc.rust-lang.org/std/primitive.str.html#impl-Ord-for-str)
13 /// of the keys. Enable the `preserve_order` feature to store entries in the order they appear in
21 /// fail, or if `T` contains a map with non-string keys.
22 pub fn try_from<T>(value: T) -> Result<Self, crate::ser::Error> in try_from()
36 pub fn try_into<'de, T>(self) -> Result<T, crate::de::Error> in try_into()
46 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
56 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str()
64 fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, crate::de::Error> in deserialize_any()
66 V: de::Visitor<'de>, in deserialize_any()
68 Value::Table(self).deserialize_any(visitor) in deserialize_any()
[all …]
Dmap.rs3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
12 //! feature of toml-rs to use [`IndexMap`] instead.
14 //! [`BTreeMap`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html
44 pub fn new() -> Self { in new()
53 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
64 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
81 pub fn get<Q: ?Sized>(&self, key: &Q) -> Option<&Value> in get()
94 pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool in contains_key()
[all …]
/external/fonttools/Lib/fontTools/ttLib/
DscaleUpem.py1 """Change the units-per-EM of a font.
4 are de-subroutinized."""
93 def visit(visitor, obj, attr, value): argument
94 setattr(obj, attr, visitor.scale(value))
100 def visit(visitor, obj, attr, metrics): argument
103 metrics[g] = visitor.scale(advance), visitor.scale(lsb)
107 def visit(visitor, obj, attr, VOriginRecords): argument
109 VOriginRecords[g] = visitor.scale(VOriginRecords[g])
113 def visit(visitor, obj, attr, glyphs): argument
118 setattr(g, attr, visitor.scale(v))
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemForEach.java10 * http://www.apache.org/licenses/LICENSE-2.0
19 * $Id: ElemForEach.java 468643 2006-10-28 06:56:03Z minchau $
42 * Implement xsl:for-each.
44 * <!ELEMENT xsl:for-each
47 * %result-elements;
51 * <!ATTLIST xsl:for-each
53 * %space-att;
56 * @see <a href="http://www.w3.org/TR/xslt#for-each">for-each in XSLT Specification</a>
66 * This is set by an "xalan-doc-cache-off" pi, or the old "xalan:doc-cache-off" pi.
71 * construction. Note that this feature applies _only_ to xsl:for-each
[all …]
/external/rust/crates/toml_edit/src/de/
Dmod.rs31 pub(crate) fn custom<T>(msg: T, span: Option<std::ops::Range<usize>>) -> Self in custom()
46 pub fn message(&self) -> &str { in message()
51 pub fn span(&self) -> Option<std::ops::Range<usize>> { in span()
61 fn custom<T>(msg: T) -> Self in custom()
70 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt()
76 fn from(e: crate::TomlError) -> Error { in from()
82 fn from(e: Error) -> crate::TomlError { in from()
91 pub fn from_str<T>(s: &'_ str) -> Result<T, Error> in from_str()
101 pub fn from_slice<T>(s: &'_ [u8]) -> Result<T, Error> in from_slice()
110 pub fn from_document<T>(d: crate::Document) -> Result<T, Error> in from_document()
[all …]
/external/flatbuffers/
Dyarn.lock5 "@babel/code-frame@7.12.11":
7 …resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db93…
8 …integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH…
12 "@babel/helper-validator-identifier@^7.16.7":
14 …solved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identif…
15 …integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/…
19 …resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea7…
20 …integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfT…
22 "@babel/helper-validator-identifier" "^7.16.7"
24 js-tokens "^4.0.0"
[all …]
/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/document/internal/
DMapDocument.java53 * {@link Document} by directly allowing user to put String Keys
64 * @return Returns the Map with Keys as String and Values as {@code Map<Object>}.
69 …value.entrySet().forEach(mapEntry -> unwrappedMap.put(mapEntry.getKey(), mapEntry.getValue().unwra… in unwrap()
123 * Accepts a visitor with the Document.
124 * @param <R> visitor return type.
125 * @param visitor Visitor to dispatch to.
126 * @return Returns the accepted result by calling visitMap of visitor.
129 public <R> R accept(DocumentVisitor<? extends R> visitor) { in accept() argument
130 return visitor.visitMap(Collections.unmodifiableMap(this.asMap())); in accept()
134 * Accepts a visitor with the Document. Calls visitMap of visitor.
[all …]
/external/tensorflow/tensorflow/tools/api/tests/
Dapi_compatibility_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
22 "--update_goldens" flag set to "True" to update goldens when making changes to
45 # pylint: disable=g-import-not-at-top,unused-import
51 # pylint: enable=g-import-not-at-top,unused-import
65 test. Therefore, do not error out on API changes in non-core TF code
125 return '-%s' % (match.lower())
127 case_insensitive_key = re.sub('([A-Z]{1})', _ReplaceCapsWithDash, key)
149 api_object_key = re.sub('((-[a-z]){1})', _ReplaceDashWithCaps,
155 """A Visitor that crashes on subclasses of generated proto classes."""
169 """Filter out non-core API pbtxt files."""
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DByteCodeTypePrinter.java7 // http://www.apache.org/licenses/LICENSE-2.0
46 ClassVisitor visitor = new ClassWithTypeDumper(printWriter); in printClassesWithTypes() local
47 classReader.accept(visitor, 0); in printClassesWithTypes()
56 .filter(entry -> entry.getName().endsWith(".class")) in getSortedClassEntriess()
114 MethodVisitor visitor, BytecodeTypeInference inference, PrintWriter printWriter) { in MethodIrTypeDumper() argument
115 super(Opcodes.ASM5, visitor); in MethodIrTypeDumper()
147 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { in visitLookupSwitchInsn() argument
148 printer.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
150 super.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dreaching_definitions.py7 # http://www.apache.org/licenses/LICENSE-2.0
79 if frozenset(self.value.keys()) != frozenset(other.value.keys()):
109 """CFG visitor that determines reaching definitions at statement level."""
135 newly_defined = ((node_scope.bound | node_scope.globals) -
150 defs_out = gen | (defs_in - kill)
153 defs_out = gen | (defs_in - kill)
166 """AST visitor that annotates each symbol name with its reaching definitions.
168 Simultaneously, the visitor runs the dataflow analysis on each function node,
202 # Names may appear outside function defs - for example in class
226 node_defined_in |= set(self.current_analyzer.out[p].value.keys())
[all …]
/external/rust/crates/serde_json/src/
Draw.rs10 Visitor,
23 /// and will not be minified or pretty-printed.
54 /// // keys into a single "info" key holding an array of code and payload.
60 /// fn rearrange(input: &str) -> Result<String> {
70 /// fn main() -> Result<()> {
122 fn from_borrowed(json: &str) -> &Self { in from_borrowed()
126 fn from_owned(json: Box<str>) -> Box<Self> { in from_owned()
130 fn into_owned(raw_value: Box<Self>) -> Box<str> { in into_owned()
136 fn clone(&self) -> Self { in clone()
144 fn to_owned(&self) -> Self::Owned { in to_owned()
[all …]
/external/ow2-asm/asm/src/main/java/org/objectweb/asm/
DMethodVisitor.java2 // Copyright (c) 2000-2011 INRIA, France Telecom
31 * A visitor to visit a Java method. The methods of this class must be called in the following
54 * The ASM API version implemented by this visitor. The value of this field must be one of the
60 * The method visitor to which this visitor must delegate method calls. May be {@literal null}.
67 * @param api the ASM API version implemented by this visitor. Must be one of the {@code
77 * @param api the ASM API version implemented by this visitor. Must be one of the {@code
79 * @param methodVisitor the method visitor to which this visitor must delegate method calls. May
100 * The method visitor to which this visitor must delegate method calls. May be {@literal null}.
102 * @return the method visitor to which this visitor must delegate method calls, or {@literal
109 // -----------------------------------------------------------------------------------------------
[all …]
/external/mesa3d/src/gallium/tools/trace/
Ddiff_state.py38 for name in obj.keys():
44 class Visitor: class
64 class Dumper(Visitor):
88 self.leave_member(i == len(members) - 1)
106 self.level -= 1
118 if i != len(node) - 1:
129 self.level -= 1
138 class Comparer(Visitor):
140 def __init__(self, ignore_added = False, tolerance = 2.0 ** -24):
178 return abs((b - a) / a) < self.tolerance
[all …]
/external/pigweed/
Dpackage-lock.json10 "license": "Apache-2.0",
12 "@protobuf-ts/protoc": "^2.7.0",
14 "google-protobuf": "^3.17.3",
17 "rollup-plugin-postcss": "^4.0.2",
18 "ts-protoc-gen": "^0.15.0"
24 "@grpc/grpc-js": "^1.3.7",
25 "@material-ui/core": "^4.12.1",
26 "@material-ui/lab": "^4.0.0-alpha.60",
27 "@rollup/plugin-commonjs": "^19.0.0",
28 "@rollup/plugin-node-resolve": "^13.3.0",
[all …]
/external/bcc/examples/lua/
Duprobe-tailkt.lua1 #!/usr/bin/env bcc-lua
2 --[[
9 http://www.apache.org/licenses/LICENSE-2.0
17 -- Trace operations on keys matching given pattern in KyotoTycoon daemon.
18 -- This can show you if certain keys were modified or read during the lifetime
19 -- even if KT doesn't support this. It also shows how to attach to C++ mangled symbols.
28 -- Accept the same format as ktremotemgr for clarity: <get|set> <key>
32 elseif arg[1] == '-h' or arg[1] == '--help' then help()
38 -- Find a good entrypoint that has both key and differentiates read/write in KT
39 -- That is going to serve as an attachment point for BPF program
[all …]
/external/ksp/test-utils/src/main/kotlin/com/google/devtools/ksp/processor/
DConstructorDeclarationsProcessor.kt3 * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
9 * http://www.apache.org/licenses/LICENSE-2.0
26 val visitor = ConstructorsVisitor() constant in com.google.devtools.ksp.processor.ConstructorDeclarationsProcessor
29 return visitor.toResult() in toResult()
33 resolver.getAllFiles().forEach { it.accept(visitor, Unit) } in process()
34 val classNames = visitor.classNames().toList() // copy in process()
40 ?.accept(visitor, Unit) in process()
47 fun classNames() = declarationsByClass.keys in classNames()
51 // sort by simple name to get cousin classes next to each-other in classNames()
70 ?: "<no-return>"}" in KSFunctionDeclaration()
/external/rust/crates/toml_edit/examples/
Dvisit.rs8 /// This models the visit state for dependency keys in a `Cargo.toml`.
16 /// [build-dependencies]
19 /// [dev-dependencies]
25 /// # and target build- and dev-dependencies
31 /// Represents "dependencies", "build-dependencies" or "dev-dependencies", or the target
46 fn descend(self, key: &str) -> Self { in descend()
50 "dependencies" | "build-dependencies" | "dev-dependencies", in descend()
74 // Since we're only interested in collecting the top-level keys right under in visit_table_like_kv()
123 // Top-level dependency row, or above: turn inline tables into regular ones. in visit_table_like_kv_mut()
165 name = "my-package"
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/res/
DResourceTestUtil.java16 long elapsed = System.nanoTime() - startTime; in time()
23 resourceTable.receive(new ResourceTable.Visitor() { in stringify()
34 TreeSet<String> keys = new TreeSet<>(map.keySet()); in stringify() local
35 for (String key : keys) { in stringify()
57 styleData.visit(new StyleData.Visitor() { in stringify()
/external/fonttools/Snippets/
Dprint-json.py14 self._indent = self._indent[: -len(self.indent)]
82 s = '"' + s[1:-1] + '"'
89 if hasattr(visitor, "font"):
92 visitor.font = font
95 for tag in font.keys():
99 visitor.visit(font[tag])
102 del visitor.font
113 def visit(visitor, obj, attr, value): argument
146 print("usage: print-json.py font")
151 visitor = JsonVisitor(sys.stdout) variable
[all …]
/external/tensorflow/tensorflow/tools/compatibility/update/
Dgenerate_v2_renames_map.py7 # http://www.apache.org/licenses/LICENSE-2.0
15 # pylint: disable=line-too-long
20 bazel-bin/tensorflow/tools/compatibility/update/generate_v2_renames_map
21 pyformat --in_place third_party/tensorflow/tools/compatibility/renames_v2.py
23 # pylint: enable=line-too-long
29 from tensorflow import python as tf_python # pylint: disable=unused-import
46 # http://www.apache.org/licenses/LICENSE-2.0
54 # pylint: disable=line-too-long
59 bazel-bin/tensorflow/tools/compatibility/update/generate_v2_renames_map
60 pyformat --in_place third_party/tensorflow/tools/compatibility/renames_v2.py
[all …]

1234567891011