Home
last modified time | relevance | path

Searched refs:rewrite (Results 1 – 25 of 722) sorted by relevance

12345678910>>...29

/external/antlr/runtime/Ruby/test/functional/token-rewrite/
Dbasic.rb18 def rewrite( input, expected ) method in TestRewritingLexerOutputDirectly
27 rewrite( 'abc', '0abc' ) do |stream|
33 rewrite( 'abc', 'abcx' ) do |stream|
39 rewrite( 'abc', 'axbxc' ) do |stream|
46 rewrite( 'abc', 'xbc' ) do |stream|
52 rewrite( 'abc', 'abx' ) do |stream|
58 rewrite( 'abc', 'abx' ) do |stream|
64 rewrite( 'abc', 'axc' ) do |stream|
70 rewrite( 'abc', 'ayc' ) do |stream|
77 rewrite( 'abc', '_ayc' ) do |stream|
[all …]
/external/python/cpython3/Modules/_decimal/libmpdec/literature/
Dmulmod-ppro.txt151 rewrite <- (Qred_correct (T)); simpl (Qred (T)).
172 rewrite <- (Qdiv_mult_l x z). rewrite <- (Qdiv_mult_l y z).
196 rewrite Qlt_mult_by_z with (z := (p * (1 + (2#1)^(-63))^2)).
199 rewrite <- Qmult_assoc.
200 rewrite (Qmult_comm (/ (p * (1 + (2 # 1) ^ (-63)) ^ 2)) (p * (1 + (2 # 1) ^ (-63)) ^ 2)).
201 rewrite Qmult_inv_r.
202 rewrite Qmult_1_r.
209 rewrite H5.
211 rewrite Qplus_comm.
212 rewrite Qlt_move_right.
[all …]
/external/angle/src/compiler/translator/tree_ops/
DRewriteRepeatedAssignToSwizzled.cpp30 ANGLE_NO_DISCARD static bool rewrite(TCompiler *compiler, TIntermBlock *root);
45 bool RewriteAssignToSwizzledTraverser::rewrite(TCompiler *compiler, TIntermBlock *root) in rewrite() function in sh::__anonb217797d0111::RewriteAssignToSwizzledTraverser
47 RewriteAssignToSwizzledTraverser rewrite; in rewrite() local
50 rewrite.nextIteration(); in rewrite()
51 root->traverse(&rewrite); in rewrite()
52 if (!rewrite.updateTree(compiler, root)) in rewrite()
56 } while (rewrite.didRewrite()); in rewrite()
94 return RewriteAssignToSwizzledTraverser::rewrite(compiler, root); in RewriteRepeatedAssignToSwizzled()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DAddAnnotation.java61 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
62 import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
250 final ASTRewrite rewrite = context.rewrite(); in process() local
254 return handleBodyDeclaration(rewrite, node); in process()
259 return handleBodyDeclaration(rewrite, node); in process()
264 return handleBodyDeclaration(rewrite, node); in process()
269 return handleBodyDeclaration(rewrite, node); in process()
274 return handleBodyDeclaration(rewrite, node); in process()
279 return handleBodyDeclaration(rewrite, node); in process()
284 return handleBodyDeclaration(rewrite, node); in process()
[all …]
DAddDefaultConstructor.java30 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
31 import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
70 final ASTRewrite rewrite = context.rewrite(); in process() local
75 addDefaultConstructor(rewrite, typeDeclaration); in process()
81 private void addDefaultConstructor(ASTRewrite rewrite, TypeDeclaration node) { in addDefaultConstructor() argument
82 AST ast = rewrite.getAST(); in addDefaultConstructor()
100 ListRewrite listRewrite = rewrite.getListRewrite(node, node.getBodyDeclarationsProperty()); in addDefaultConstructor()
DBaseJavadocNodeScanner.java26 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
39 ASTRewrite rewrite = context.rewrite(); in process() local
44 visit(reporter, javadoc, rewrite); in process()
49 protected abstract void visit(Reporter reporter, Javadoc javadoc, ASTRewrite rewrite); in visit() argument
DBaseTagElementNodeScanner.java23 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
31 final ASTRewrite rewrite) { in visit() argument
35 return visitTagElement(reporter, rewrite, node); in visit()
40 protected abstract boolean visitTagElement(Reporter reporter, ASTRewrite rewrite, TagElement tag); in visitTagElement() argument
DRenamePackage.java24 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
52 ASTRewrite rewrite = context.rewrite(); in process() local
53 rewrite.replace(packageDeclaration.getName(), newName, null /* editGroup */); in process()
DModifyStringLiterals.java24 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
43 final ASTRewrite rewrite = context.rewrite(); in process() local
53 rewrite.replace(node, newLiteral, null /* editGorup */); in process()
DModifyQualifiedNames.java25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
44 final ASTRewrite rewrite = context.rewrite(); in process() local
55 rewrite.replace(qualifier, newQualifier, null /* editGroup */); in process()
/external/mesa3d/src/gallium/drivers/r600/sb/
Dsb_gvn.cpp45 bool rewrite = true; in visit() local
48 rewrite = false; in visit()
52 process_op(n, rewrite); in visit()
135 bool gvn::process_src(value* &v, bool rewrite) { in process_src() argument
139 if (rewrite && !v->gvn_source->is_rel()) { in process_src()
188 void gvn::process_op(node& n, bool rewrite) { in process_op() argument
194 process_src(v->rel, rewrite); in process_op()
197 if (rewrite && v->gvn_source && v->gvn_source->is_readonly() && in process_op()
200 } else if (rewrite && v->gvn_source && v->gvn_source->is_const() && in process_op()
205 process_src(v, rewrite); in process_op()
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/
DJavadocUtils.java25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
26 import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
36 public static void addJavadocTag(ASTRewrite rewrite, BodyDeclaration node, String tagText) { in addJavadocTag() argument
41 rewrite.set(node, node.getJavadocProperty(), javadoc, null /* editGroup */); in addJavadocTag()
43 addJavadocTag(rewrite, javadoc, tagText); in addJavadocTag()
46 public static void addJavadocTag(ASTRewrite rewrite, Javadoc javadoc, String tagText) { in addJavadocTag() argument
49 ListRewrite listRewrite = rewrite.getListRewrite(javadoc, Javadoc.TAGS_PROPERTY); in addJavadocTag()
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DReplaceIcuTags.java25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
35 protected boolean visitTagElement(Reporter reporter, ASTRewrite rewrite, TagElement tag) { in visitTagElement() argument
45 rewrite.replace(tag, createIcuMarker(ast), null /* editGroup */); in visitTagElement()
49 rewrite.replace(tag, createIcuUsageText(ast), null /* editGroup */); in visitTagElement()
59 rewrite.replace(tag, createIcuEnhancementText(ast, element), null /* editGroup */); in visitTagElement()
63 rewrite.replace(tag, createIcuNoteText(ast), null /* editGroup */); in visitTagElement()
67 rewrite.replace(tag, createDiscouragedText(ast, fragments), null /* editGroup */); in visitTagElement()
71 rewrite.remove(tag, null /* editGroup */); in visitTagElement()
DShardingAnnotator.java36 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
73 ASTRewrite rewrite = context.rewrite(); in process() local
79 annotateTestType(cu, rewrite, declaration, imports); in process()
93 CompilationUnit cu, ASTRewrite rewrite, TypeDeclaration type, Set<String> imports) { in annotateTestType() argument
99 appendImport(cu, rewrite, annotationName); in annotateTestType()
106 rewrite.getListRewrite(type, type.getModifiersProperty()) in annotateTestType()
118 private void appendImport(CompilationUnit cu, ASTRewrite rewrite, String annotationName) { in appendImport() argument
123 rewrite.getListRewrite(cu, CompilationUnit.IMPORTS_PROPERTY) in appendImport()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Deager_op_rewrite_registry.h91 #define REGISTER_REWRITE(phase, rewrite) \ argument
92 REGISTER_REWRITE_UNIQ_HELPER(__COUNTER__, __FILE__, __LINE__, phase, rewrite)
94 #define REGISTER_REWRITE_UNIQ_HELPER(ctr, file, line, phase, rewrite) \ argument
95 REGISTER_REWRITE_UNIQ(ctr, file, line, phase, rewrite)
97 #define REGISTER_REWRITE_UNIQ(ctr, file, line, phase, rewrite) \ argument
101 new rewrite(#rewrite, file, #line)))
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/
Dpreprocessor_test.cc47 AccuInlineRewrite rewrite(&blocks); in ParseInlines() local
48 preprocessor.AddRewrite(&rewrite); in ParseInlines()
73 AccuInlineRewrite rewrite(&blocks); in RewriteInlines() local
74 preprocessor.AddRewrite(&rewrite); in RewriteInlines()
111 SingleRewrite rewrite; in TEST() local
112 preprocessor.AddRewrite(&rewrite); in TEST()
120 SingleRewrite rewrite; in TEST() local
121 preprocessor.AddRewrite(&rewrite); in TEST()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_RegexReplace.pbtxt12 name: "rewrite"
14 The rewrite string to be substituted for the `pattern` expression where it is
20 description: "The text after applying pattern match and rewrite substitution."
26 expression in each input string are rewritten), otherwise the `rewrite`
32 replacement string provided in `rewrite`.
Dapi_def_StaticRegexReplace.pbtxt9 description: "The text after applying pattern and rewrite."
16 name: "rewrite"
17 description: "The rewrite to be applied to the matched expression."
23 summary: "Replaces the match of pattern in input with rewrite."
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DEncodedValueRewriter.java52 @Nonnull @Override public EncodedValue rewrite(@Nonnull EncodedValue encodedValue) { in rewrite() method in EncodedValueRewriter
79 return rewriters.getTypeRewriter().rewrite(typeEncodedValue.getValue()); in getValue()
91 return rewriters.getFieldReferenceRewriter().rewrite(fieldEncodedValue.getValue()); in getValue()
103 return rewriters.getFieldReferenceRewriter().rewrite(enumEncodedValue.getValue()); in getValue()
115 return rewriters.getMethodReferenceRewriter().rewrite(methodEncodedValue.getValue()); in getValue()
139 return rewriters.getTypeRewriter().rewrite(annotationEncodedValue.getType()); in getType()
DMethodRewriter.java52 @Nonnull @Override public Method rewrite(@Nonnull Method value) { in rewrite() method in MethodRewriter
64 return rewriters.getMethodReferenceRewriter().rewrite(method).getDefiningClass(); in getDefiningClass()
68 return rewriters.getMethodReferenceRewriter().rewrite(method).getName(); in getName()
72 return rewriters.getMethodReferenceRewriter().rewrite(method).getParameterTypes(); in getParameterTypes()
84 return rewriters.getMethodReferenceRewriter().rewrite(method).getReturnType(); in getReturnType()
DFieldRewriter.java50 @Nonnull @Override public Field rewrite(@Nonnull Field field) { in rewrite() method in FieldRewriter
62 return rewriters.getFieldReferenceRewriter().rewrite(field).getDefiningClass(); in getDefiningClass()
66 return rewriters.getFieldReferenceRewriter().rewrite(field).getName(); in getName()
70 return rewriters.getFieldReferenceRewriter().rewrite(field).getType(); in getType()
/external/angle/third_party/jsoncpp/source/test/
Dpyjsontestrunner.py61 rewrite = json.dumps(value)
63 file(rewrite_path, 'wt').write(rewrite + '\n')
64 return rewrite
68 rewrite = rewriteValueTree(json.write(root), rewrite_path) variable
69 rewrite_root = parseAndSaveValueTree(rewrite, rewrite_actual_path)
/external/jsoncpp/test/
Dpyjsontestrunner.py54 rewrite = json.dumps( value )
56 file( rewrite_path, 'wt').write( rewrite + '\n' )
57 return rewrite
61 rewrite = rewriteValueTree( json.write( root ), rewrite_path ) variable
62 rewrite_root = parseAndSaveValueTree( rewrite, rewrite_actual_path )
/external/clang/test/Driver/
Drewrite-legacy-objc.m1 // RUN: %clang -no-canonical-prefixes -target x86_64-apple-macosx10.7.0 -rewrite-legacy-objc %s -o …
4 // TEST0: "-rewrite-objc"
7 // TEST0: rewrite-legacy-objc.m"
8 // RUN: %clang -no-canonical-prefixes -target i386-apple-macosx10.9.0 -rewrite-legacy-objc %s -o - …
10 // RUN: %clang -no-canonical-prefixes -target i386-apple-macosx10.6.0 -rewrite-legacy-objc %s -o - …
/external/tensorflow/tensorflow/core/kernels/
Dregex_replace_op_test.cc75 Tensor rewrite(DT_STRING, TensorShape({})); in SetupRegexReplaceGraph() local
76 rewrite.flat<tstring>().setConstant(input_rewrite); in SetupRegexReplaceGraph()
81 .Input(test::graph::Constant(g, rewrite)) in SetupRegexReplaceGraph()
107 const string& rewrite) { in SetupStaticGraph() argument
112 .Attr("rewrite", rewrite) in SetupStaticGraph()

12345678910>>...29