| 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 f0bb61e8ae1c8a17083569d26613686c41e8987d..d4ee0426cfdacf5c1d2537ab9d70ebc49d135f95 100644
|
| --- a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
|
| +++ b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
|
| @@ -361,19 +361,32 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
|
| return true;
|
| case 'Location':
|
| docComment([new dom.Text(
|
| - 'Construct based on an element from the analyzer engine.')]);
|
| + 'Create a Location based on an [engine.Element].')]);
|
| writeln('factory Location.fromElement(engine.Element element) =>');
|
| writeln(' _locationFromElement(element);');
|
| writeln();
|
| - docComment([new dom.Text('Create a Location based on an element and offset from the analyzer engine.')]);
|
| - writeln('factory Location.fromOffset(engine.Element element, int offset, int length) =>');
|
| - writeln(' _locationFromOffset(element, offset, length);');
|
| + docComment([new dom.Text('Create a Location based on an [engine.SearchMatch].')]);
|
| + writeln('factory Location.fromMatch(engine.SearchMatch match) =>');
|
| + writeln(' _locationFromMatch(match);');
|
| + writeln();
|
| + docComment([new dom.Text('Create a Location based on an [engine.AstNode].')]);
|
| + writeln('factory Location.fromNode(engine.AstNode node) =>');
|
| + writeln(' _locationFromNode(node);');
|
| + writeln();
|
| + docComment([new dom.Text('Create a Location based on an [engine.CompilationUnit].')]);
|
| + writeln('factory Location.fromUnit(engine.CompilationUnit unit, engine.SourceRange range) =>');
|
| + writeln(' _locationFromUnit(unit, range);');
|
| return true;
|
| case 'OverriddenMember':
|
| docComment([new dom.Text('Construct based on an element from the analyzer engine.')]);
|
| writeln('factory OverriddenMember.fromEngine(engine.Element member) =>');
|
| writeln(' _overriddenMemberFromEngine(member);');
|
| return true;
|
| + case 'RefactoringProblemSeverity':
|
| + docComment([new dom.Text('Returns the [RefactoringProblemSeverity] with the maximal severity.')]);
|
| + writeln('static RefactoringProblemSeverity max(RefactoringProblemSeverity a, RefactoringProblemSeverity b) =>');
|
| + writeln(' _maxRefactoringProblemSeverity(a, b);');
|
| + return true;
|
| case 'SearchResult':
|
| docComment([new dom.Text('Construct based on a value from the search engine.')]);
|
| writeln('factory SearchResult.fromMatch(engine.SearchMatch match) =>');
|
|
|