Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: pkg/analysis_server/tool/spec/codegen_dart_protocol.dart

Issue 580273002: Push add*Edit helpers into SourceChange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/refactoring/rename_import.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
index b473b2534e14550c46d68f4d3ae1531413ee390a..2cf47325f39bc0b33a773bf3e0a70a5779f785ae 100644
--- a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
+++ b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
@@ -563,6 +563,17 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
writeln('void addEdit(String file, int fileStamp, SourceEdit edit) =>');
writeln(' _addEditToSourceChange(this, file, fileStamp, edit);');
writeln();
+ docComment(
+ [new dom.Text('Adds [edit] to the [FileEdit] for the given [source].')]);
+ writeln('void addSourceEdit(engine.AnalysisContext context,');
+ writeln( 'engine.Source source, SourceEdit edit) =>');
+ writeln(' _addSourceEditToSourceChange(this, context, source, edit);');
+ writeln();
+ docComment(
+ [new dom.Text('Adds [edit] to the [FileEdit] for the given [element].')]);
+ writeln('void addElementEdit(engine.Element element, SourceEdit edit) =>');
+ writeln(' _addElementEditToSourceChange(this, element, edit);');
+ writeln();
docComment([new dom.Text('Adds the given [FileEdit].')]);
writeln('void addFileEdit(SourceFileEdit edit) {');
indent(() {
« no previous file with comments | « pkg/analysis_server/lib/src/services/refactoring/rename_import.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698