Lines Matching full:replaces
114 Replacements Replaces;
115 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
117 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1),
119 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite));
126 Replacements Replaces;
127 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
129 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
131 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
133 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite));
142 Replacements Replaces;
143 Replaces.insert(Replacement(Context.Sources, Context.getLocation(IDa, 1, 1),
145 Replaces.insert(Replacement(Context.Sources, SourceLocation(),
147 Replaces.insert(Replacement(Context.Sources, Context.getLocation(IDz, 1, 1),
149 EXPECT_FALSE(applyAllReplacements(Replaces, Context.Rewrite));
155 Replacements Replaces;
156 Replaces.insert(Replacement("", 0, 1, ""));
157 Replaces.insert(Replacement("", 4, 3, " "));
159 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 0)); // |int i;
160 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 1)); // |nt i;
161 EXPECT_EQ(1u, shiftedCodePosition(Replaces, 2)); // i|t i;
162 EXPECT_EQ(2u, shiftedCodePosition(Replaces, 3)); // in| i;
163 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 4)); // int| i;
164 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 5)); // int | i;
165 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 6)); // int |i;
166 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 7)); // int |;
167 EXPECT_EQ(5u, shiftedCodePosition(Replaces, 8)); // int i|
171 Replacements Replaces;
172 Replaces.insert(Replacement("", 4, 0, "\"\n\""));
174 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 4)); // "123|5678"
175 EXPECT_EQ(8u, shiftedCodePosition(Replaces, 5)); // "1234|678"
230 Replacements Replaces;
231 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
233 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite));