OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Rewriter
(Results
1 - 25
of
78
) sorted by null
1
2
3
4
/external/clang/lib/Frontend/Rewrite/
RewriteTest.cpp
1
//===--- RewriteTest.cpp -
Rewriter
playground ----------------------------===//
23
TokenRewriter
Rewriter
(SM.getMainFileID(), SM, LangOpts);
26
for (TokenRewriter::token_iterator I =
Rewriter
.token_begin(),
27
E =
Rewriter
.token_end(); I != E; ++I) {
30
Rewriter
.AddTokenBefore(I, "<i>");
31
Rewriter
.AddTokenAfter(I, "</i>");
36
for (TokenRewriter::token_iterator I =
Rewriter
.token_begin(),
37
E =
Rewriter
.token_end(); I != E; ++I)
FrontendActions.cpp
99
Rewriter
.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(),
106
Rewriter
->WriteFixedFiles();
125
FixItRewriter
Rewriter
(CI.getDiagnostics(), CI.getSourceManager(),
129
err =
Rewriter
.WriteFixedFiles(&RewrittenFiles);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
Rewriters.java
32
package org.jf.dexlib2.
rewriter
;
44
@Nonnull
Rewriter
<ClassDef> getClassDefRewriter();
45
@Nonnull
Rewriter
<Field> getFieldRewriter();
47
@Nonnull
Rewriter
<Method> getMethodRewriter();
48
@Nonnull
Rewriter
<MethodParameter> getMethodParameterRewriter();
49
@Nonnull
Rewriter
<MethodImplementation> getMethodImplementationRewriter();
50
@Nonnull
Rewriter
<Instruction> getInstructionRewriter();
51
@Nonnull
Rewriter
<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter();
52
@Nonnull
Rewriter
<ExceptionHandler> getExceptionHandlerRewriter();
53
@Nonnull
Rewriter
<DebugItem> getDebugItemRewriter()
[
all
...]
DexRewriter.java
32
package org.jf.dexlib2.
rewriter
;
54
* DexRewriter
rewriter
= new DexRewriter(new RewriterModule() {
55
* public
Rewriter
<String> getTypeRewriter(Rewriters rewriters) {
56
* return new
Rewriter
<String>() {
66
* DexFile rewrittenDexFile =
rewriter
.rewriteDexFile(dexFile);
71
private final
Rewriter
<ClassDef> classDefRewriter;
72
private final
Rewriter
<Field> fieldRewriter;
73
private final
Rewriter
<Method> methodRewriter;
74
private final
Rewriter
<MethodParameter> methodParameterRewriter;
75
private final
Rewriter
<MethodImplementation> methodImplementationRewriter
[
all
...]
RewriterModule.java
32
package org.jf.dexlib2.
rewriter
;
44
@Nonnull public
Rewriter
<ClassDef> getClassDefRewriter(@Nonnull Rewriters rewriters) {
48
@Nonnull public
Rewriter
<Field> getFieldRewriter(@Nonnull Rewriters rewriters) {
52
@Nonnull public
Rewriter
<Method> getMethodRewriter(@Nonnull Rewriters rewriters) {
56
@Nonnull public
Rewriter
<MethodParameter> getMethodParameterRewriter(@Nonnull Rewriters rewriters) {
60
@Nonnull public
Rewriter
<MethodImplementation> getMethodImplementationRewriter(@Nonnull Rewriters rewriters) {
64
@Nonnull public
Rewriter
<Instruction> getInstructionRewriter(@Nonnull Rewriters rewriters) {
68
@Nonnull public
Rewriter
<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter(@Nonnull Rewriters rewriters) {
72
@Nonnull public
Rewriter
<ExceptionHandler> getExceptionHandlerRewriter(@Nonnull Rewriters rewriters) {
76
@Nonnull public
Rewriter
<DebugItem> getDebugItemRewriter(@Nonnull Rewriters rewriters)
[
all
...]
Rewriter.java
32
package org.jf.dexlib2.
rewriter
;
36
public interface
Rewriter
<T> {
TypeRewriter.java
32
package org.jf.dexlib2.
rewriter
;
36
public class TypeRewriter implements
Rewriter
<String> {
RewriterUtils.java
32
package org.jf.dexlib2.
rewriter
;
43
public static <T> T rewriteNullable(@Nonnull
Rewriter
<T>
rewriter
, @Nullable T value) {
44
return value==null?null:
rewriter
.rewrite(value);
47
public static <T> Set<T> rewriteSet(@Nonnull final
Rewriter
<T>
rewriter
,
58
return rewriteNullable(
rewriter
, iterator.next());
73
public static <T> List<T> rewriteList(@Nonnull final
Rewriter
<T>
rewriter
,
77
return rewriteNullable(
rewriter
, list.get(i))
[
all
...]
AnnotationElementRewriter.java
32
package org.jf.dexlib2.
rewriter
;
40
public class AnnotationElementRewriter implements
Rewriter
<AnnotationElement> {
AnnotationRewriter.java
32
package org.jf.dexlib2.
rewriter
;
41
public class AnnotationRewriter implements
Rewriter
<Annotation> {
ExceptionHandlerRewriter.java
32
package org.jf.dexlib2.
rewriter
;
40
public class ExceptionHandlerRewriter implements
Rewriter
<ExceptionHandler> {
FieldReferenceRewriter.java
32
package org.jf.dexlib2.
rewriter
;
39
public class FieldReferenceRewriter implements
Rewriter
<FieldReference> {
/external/clang/include/clang/Rewrite/Core/
HTMLRewrite.h
23
class
Rewriter
;
33
void HighlightRange(
Rewriter
&R, SourceLocation B, SourceLocation E,
40
inline void HighlightRange(
Rewriter
&R, SourceRange Range,
53
void EscapeText(
Rewriter
& R, FileID FID,
63
void AddLineNumbers(
Rewriter
& R, FileID FID);
65
void AddHeaderFooterInternalBuiltinCSS(
Rewriter
& R, FileID FID,
70
void SyntaxHighlight(
Rewriter
&R, FileID FID, const Preprocessor &PP);
76
void HighlightMacros(
Rewriter
&R, FileID FID, const Preprocessor &PP);
RewriteBuffer.h
19
class
Rewriter
;
28
friend class
Rewriter
;
52
///
Rewriter
::overwriteChangedFiles() instead.
90
private: // Methods only usable by
Rewriter
.
Rewriter.h
1
//===---
Rewriter
.h - Code rewriting interface ------------------*- C++ -*-===//
10
// This file defines the
Rewriter
class, which is used for code
28
///
Rewriter
- This is the main interface to the rewrite buffers. Its primary
31
class
Rewriter
{
56
explicit
Rewriter
(SourceManager &SM, const LangOptions &LO)
58
explicit
Rewriter
() : SourceMgr(nullptr), LangOpts(nullptr) {}
/external/clang/include/clang/Tooling/
Refactoring.h
11
// While single translation unit refactorings are supported via the
Rewriter
,
28
class
Rewriter
;
55
/// \brief Apply all stored replacements to the given
Rewriter
.
61
bool applyAllReplacements(
Rewriter
&Rewrite);
65
int saveRewrittenFiles(
Rewriter
&Rewrite);
72
/// Replacements on the related file in \p
Rewriter
. In addition to applying
87
Rewriter
&Rewrite, StringRef Style = "file");
/external/v8/src/parsing/
parameter-initializer-rewriter.cc
5
#include "src/parsing/parameter-initializer-
rewriter
.h"
17
class
Rewriter
final : public AstTraversalVisitor<
Rewriter
> {
19
Rewriter
(uintptr_t stack_limit, Expression* initializer, Scope* param_scope)
26
friend class AstTraversalVisitor<
Rewriter
>;
39
void
Rewriter
::VisitFunctionLiteral(FunctionLiteral* function_literal) {
44
void
Rewriter
::VisitClassLiteral(ClassLiteral* class_literal) {
63
void
Rewriter
::VisitVariableProxy(VariableProxy* proxy) {
76
void
Rewriter
::VisitBlock(Block* stmt) {
84
void
Rewriter
::VisitTryCatchStatement(TryCatchStatement* stmt)
[
all
...]
rewriter.h
18
class
Rewriter
{
/external/clang/unittests/Tooling/
RewriterTest.cpp
18
TEST(
Rewriter
, OverwritesChangedFiles) {
27
TEST(
Rewriter
, ContinuesOverwritingFilesOnError) {
40
TEST(
Rewriter
, AdjacentInsertAndDelete) {
/external/clang/lib/Tooling/
Refactoring.cpp
20
#include "clang/Rewrite/Core/
Rewriter
.h"
48
Rewriter
Rewrite(Sources, DefaultLangOptions);
57
bool RefactoringTool::applyAllReplacements(
Rewriter
&Rewrite) {
61
int RefactoringTool::saveRewrittenFiles(
Rewriter
&Rewrite) {
66
Rewriter
&Rewrite, StringRef Style) {
/external/clang/include/clang/Rewrite/Frontend/
FixItRewriter.h
1
//===--- FixItRewriter.h - Fix-It
Rewriter
Diagnostic Client ----*- C++ -*-===//
21
#include "clang/Rewrite/Core/
Rewriter
.h"
66
/// \brief The
rewriter
used to perform the various code
68
Rewriter
Rewrite;
79
/// \brief The number of
rewriter
failures.
86
typedef
Rewriter
::buffer_iterator iterator;
88
/// \brief Initialize a new fix-it
rewriter
.
92
/// \brief Destroy the fix-it
rewriter
.
FrontendActions.h
31
std::unique_ptr<FixItRewriter>
Rewriter
;
/external/clang/lib/Rewrite/
Rewriter.cpp
1
//===---
Rewriter
.cpp - Code rewriting interface --------------------------===//
10
// This file defines the
Rewriter
class, which is used for code
15
#include "clang/Rewrite/Core/
Rewriter
.h"
119
//
Rewriter
class
124
int
Rewriter
::getRangeSize(const CharSourceRange &Range,
157
int
Rewriter
::getRangeSize(SourceRange Range, RewriteOptions opts) const {
168
std::string
Rewriter
::getRewrittenText(SourceRange Range) const {
212
unsigned
Rewriter
::getLocationOffsetAndFileID(SourceLocation Loc,
223
RewriteBuffer &
Rewriter
::getEditBuffer(FileID FID) {
238
bool
Rewriter
::InsertText(SourceLocation Loc, StringRef Str
[
all
...]
/external/clang/include/clang/Tooling/Core/
Replacement.h
11
// While single translation unit refactorings are supported via the
Rewriter
,
33
class
Rewriter
;
120
/// \brief Applies the replacement on the
Rewriter
.
121
bool apply(
Rewriter
&Rewrite) const;
150
/// \brief Apply all replacements in \p Replaces to the
Rewriter
\p Rewrite.
156
bool applyAllReplacements(const Replacements &Replaces,
Rewriter
&Rewrite);
158
/// \brief Apply all replacements in \p Replaces to the
Rewriter
\p Rewrite.
165
Rewriter
&Rewrite);
/external/clang/lib/Index/
SimpleFormatContext.h
24
#include "clang/Rewrite/Core/
Rewriter
.h"
69
Rewriter
Rewrite;
Completed in 404 milliseconds
1
2
3
4