Lines Matching defs:ID
45 FileID ID = Context.createInMemoryFile("input.cpp", "text");
46 SourceLocation Location = Context.getLocation(ID, 1, 1);
49 EXPECT_EQ("", Context.getRewrittenText(ID));
53 FileID ID = Context.createInMemoryFile("input.cpp", "line1\nline2\nline3");
54 SourceLocation Location = Context.getLocation(ID, 1, 1);
57 EXPECT_EQ("", Context.getRewrittenText(ID));
61 FileID ID = Context.createInMemoryFile("input.cpp", "");
62 SourceLocation Location = Context.getLocation(ID, 1, 1);
65 EXPECT_EQ("result", Context.getRewrittenText(ID));
69 FileID ID = Context.createInMemoryFile("input.cpp",
71 SourceLocation Location = Context.getLocation(ID, 2, 3);
74 EXPECT_EQ("line1\nlixne4", Context.getRewrittenText(ID));
78 FileID ID = Context.createInMemoryFile("input.cpp",
80 SourceLocation Location1 = Context.getLocation(ID, 2, 3);
83 EXPECT_EQ("line1\nlix\ny\nne4", Context.getRewrittenText(ID));
87 SourceLocation Location2 = Context.getLocation(ID, 4, 4);
90 EXPECT_EQ("line1\nlix\ny\nnf4", Context.getRewrittenText(ID));
112 FileID ID = Context.createInMemoryFile("input.cpp",
115 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
117 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1),
120 EXPECT_EQ("line1\nreplaced\nother\nline4", Context.getRewrittenText(ID));
127 FileID ID = Context.createInMemoryFile("input.cpp",
130 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
133 Replacement(Context.Sources, Context.getLocation(ID, 3, 1), 5, "other"));
135 EXPECT_EQ("line1\nreplaced\nother\nline4", Context.getRewrittenText(ID));
139 FileID ID = Context.createInMemoryFile("input.cpp",
142 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
144 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
146 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
149 EXPECT_EQ("line1\nreplaced\nline3\nline4", Context.getRewrittenText(ID));
264 FileID ID = createFile("input.cpp", "line1\nline2\nline3\nline4");
266 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),