Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Tools/peg_generator/pegen/
Dgrammar_parser.py10 from pegen.parser import memoize, memoize_left_rec, logger, Parser
42 @memoize
57 @memoize
79 @memoize
101 @memoize
144 @memoize
166 @memoize
227 @memoize
268 @memoize
285 @memoize
[all …]
Dparser.py43 def memoize(method: F) -> F: function
179 @memoize
186 @memoize
193 @memoize
200 @memoize
207 @memoize
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java88 Suppliers.memoize( in BytecodeBoundClass()
104 Suppliers.memoize(
128 Suppliers.memoize(
148 Suppliers.memoize(
172 Suppliers.memoize(
192 Suppliers.memoize(
205 Suppliers.memoize(
227 Suppliers.memoize(
245 Suppliers.memoize(
263 Suppliers.memoize(
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java96 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in memoizeTest()
106 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in memoize_redudantlyTest()
107 assertSame(memoizedSupplier, Suppliers.memoize(memoizedSupplier)); in memoize_redudantlyTest()
116 Supplier<Integer> memoizedSupplier = Suppliers.memoize(throwingSupplier); in memoizeExceptionThrownTest()
132 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeNonSerializable()
152 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeSerializable()
301 return Suppliers.memoize(supplier); in testMemoizedSupplierThreadSafe()
436 assertEquals(Integer.valueOf(5), reserialize(Suppliers.memoize(Suppliers.ofInstance(5))).get()); in testSerialization()
/external/guava/android/guava-tests/test/com/google/common/base/
DSuppliersTest.java96 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in memoizeTest()
106 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in memoize_redudantlyTest()
107 assertSame(memoizedSupplier, Suppliers.memoize(memoizedSupplier)); in memoize_redudantlyTest()
116 Supplier<Integer> memoizedSupplier = Suppliers.memoize(throwingSupplier); in memoizeExceptionThrownTest()
132 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeNonSerializable()
152 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeSerializable()
301 return Suppliers.memoize(supplier); in testMemoizedSupplierThreadSafe()
436 assertEquals(Integer.valueOf(5), reserialize(Suppliers.memoize(Suppliers.ofInstance(5))).get()); in testSerialization()
/external/turbine/java/com/google/turbine/processing/
DTurbineElement.java100 protected <T> Supplier<T> memoize(Supplier<T> supplier) { in memoize() method in TurbineElement
101 return factory.memoize(supplier); in memoize()
107 factory.memoize( in TurbineElement()
198 memoize( in TurbineTypeElement()
227 memoize(
253 memoize(
292 memoize(
306 memoize(
324 memoize(
382 memoize(
[all …]
DTurbineAnnotationMirror.java86 factory.memoize( in TurbineAnnotationMirror()
98 factory.memoize( in TurbineAnnotationMirror()
111 factory.memoize( in TurbineAnnotationMirror()
126 factory.memoize( in TurbineAnnotationMirror()
205 factory.memoize( in TurbineArrayConstant()
DTurbineTypeMirror.java190 factory.memoize(
204 factory.memoize(
229 factory.memoize(
488 factory.memoize(
631 factory.memoize(
/external/python/cpython2/Lib/
Dpickle.py227 def memoize(self, obj): member in Pickler
411 self.memoize(obj)
495 self.memoize(obj)
507 self.memoize(obj)
535 self.memoize(obj)
561 self.memoize(obj)
587 self.memoize(obj)
605 self.memoize(obj)
654 self.memoize(obj)
722 self.memoize(obj)
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/
Dprofile.rb70 def memoize( rule, start_index, success ) method
71 @debug_listener.memoize( rule, rule_start_index, sucess )
264 def memoize( rule, start_index, success ) method in ANTLR3.Profile.Profiler
/external/dagger2/java/dagger/hilt/processor/internal/generatesrootinput/
DGeneratesRootInputs.java20 import static com.google.common.base.Suppliers.memoize;
47 memoize(() -> getAnnotationList());
/external/dagger2/java/dagger/hilt/processor/internal/aliasof/
DAliasOfs.java19 import static com.google.common.base.Suppliers.memoize;
48 memoize(() -> getAliases());
/external/doclava/src/com/google/doclava/parser/
DJavaParser.java636 if ( state.backtracking>0 ) { memoize(input, 1, compilationUnit_StartIndex); } in compilationUnit()
687 if ( state.backtracking>0 ) { memoize(input, 2, packageDeclaration_StartIndex); } in packageDeclaration()
993 if ( state.backtracking>0 ) { memoize(input, 3, importDeclaration_StartIndex); } in importDeclaration()
1074 if ( state.backtracking>0 ) { memoize(input, 4, qualifiedImportName_StartIndex); } in qualifiedImportName()
1156 if ( state.backtracking>0 ) { memoize(input, 5, typeDeclaration_StartIndex); } in typeDeclaration()
1234 … if ( state.backtracking>0 ) { memoize(input, 6, classOrInterfaceDeclaration_StartIndex); } in classOrInterfaceDeclaration()
1426 if ( state.backtracking>0 ) { memoize(input, 7, modifiers_StartIndex); } in modifiers()
1520 if ( state.backtracking>0 ) { memoize(input, 8, variableModifiers_StartIndex); } in variableModifiers()
1598 if ( state.backtracking>0 ) { memoize(input, 9, classDeclaration_StartIndex); } in classDeclaration()
1755 if ( state.backtracking>0 ) { memoize(input, 10, normalClassDeclaration_StartIndex); } in normalClassDeclaration()
[all …]
/external/dagger2/java/dagger/internal/codegen/binding/
DBinding.java19 import static com.google.common.base.Suppliers.memoize;
96 memoize(
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootMetadata.java19 import static com.google.common.base.Suppliers.memoize;
73 memoize(this::getScopesByComponentUncached);
75 memoize(this::testRootMetadataUncached);
/external/turbine/java/com/google/turbine/binder/lookup/
DMemberImportIndex.java54 Suppliers.memoize( in MemberImportIndex()
72 Suppliers.memoize( in MemberImportIndex()
DImportIndex.java69 Suppliers.memoize( in create()
86 Suppliers.memoize( in create()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DPython3.stg41 backtracking, synpreds, memoize, numRules,
126 <if(memoize)>
206 def memoize(self, input, ruleIndex, ruleStartIndex, success):
209 super().memoize(input, ruleIndex, ruleStartIndex, success)
261 <if(memoize)>
390 <if(memoize)>
411 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
434 <if(memoize)>
446 <if(memoize)>
474 <memoize()>
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg51 backtracking, synpreds, memoize, numRules,
123 <if(memoize)>
203 def memoize(self, input, ruleIndex, ruleStartIndex, success):
206 super(<grammar.recognizerName>, self).memoize(input, ruleIndex, ruleStartIndex, success)
254 <if(memoize)>
383 <if(memoize)>
404 rule(ruleName,ruleDescriptor,block,emptyRule,description,exceptions,finally,memoize) ::= <<
427 <if(memoize)>
439 <if(memoize)>
467 <memoize()>
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/modes/
Dfilter.rb50 def memoize( rule, start_index, success ) method
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentRequirementExpressions.java21 import static com.google.common.base.Suppliers.memoize;
128 private final Supplier<MemberSelect> field = memoize(this::addField);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassProto.java91 …@Nonnull private final Supplier<ClassDef> classDefSupplier = Suppliers.memoize(new Supplier<ClassD…
137 Suppliers.memoize(new Supplier<LinkedHashMap<String, ClassDef>>() {
213 Suppliers.memoize(new Supplier<LinkedHashMap<String, ClassDef>>() {
493 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() {
690 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() {
877 … final Supplier<List<Method>> preDefaultMethodVtableSupplier = Suppliers.memoize(new Supplier<List…
928 … Supplier<List<Method>> buggyPostDefaultMethodVtableSupplier = Suppliers.memoize(new Supplier<List…
1075 …final Supplier<List<Method>> postDefaultMethodVtableSupplier = Suppliers.memoize(new Supplier<List…
/external/python/cpython3/Lib/
Dpickle.py491 def memoize(self, obj): member in _Pickler
702 self.memoize(obj)
806 self.memoize(obj)
870 self.memoize(obj)
893 self.memoize(obj)
920 self.memoize(obj)
930 self.memoize(obj)
970 self.memoize(obj)
1017 self.memoize(obj)
1052 self.memoize(obj)
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg20 profile, backtracking, synpreds, memoize, numRules, fileName, ANTLRVersion, generatedTimestamp,
253 <if(memoize)><if(grammar.grammarIsRoot)>
295 rule(ruleName, ruleDescriptor, block, emptyRule, description, exceptions, finally, memoize) ::= <<
429 <if(memoize)><if(backtracking)>
434 <if(memoize)><if(backtracking)>
455 <traceOut()><memoize()><ruleScopeCleanUp()><finally>
481 <if(memoize)>
539 <if(memoize)>
557 memoize() ::= <<
558 <if(memoize)><if(backtracking)>
[all …]
/external/turbine/java/com/google/turbine/diag/
DSourceFile.java30 Suppliers.memoize(

1234