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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/server_plugin.dart

Issue 840473007: Minor clean-ups and rename (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analysis_server.src.plugin.server_plugin; 5 library analysis_server.src.plugin.server_plugin;
6 6
7 import 'package:analysis_server/plugin/plugin.dart'; 7 import 'package:analysis_server/plugin/plugin.dart';
8 import 'package:analysis_server/src/analysis_server.dart'; 8 import 'package:analysis_server/src/analysis_server.dart';
9 import 'package:analysis_server/src/domain_analysis.dart'; 9 import 'package:analysis_server/src/domain_analysis.dart';
10 import 'package:analysis_server/src/domain_completion.dart'; 10 import 'package:analysis_server/src/domain_completion.dart';
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 /** 96 /**
97 * Validate the given extension by throwing an [ExtensionError] if it is not a 97 * Validate the given extension by throwing an [ExtensionError] if it is not a
98 * valid domain. 98 * valid domain.
99 */ 99 */
100 void _validateDomainExtension(Object extension) { 100 void _validateDomainExtension(Object extension) {
101 if (extension is! RequestHandlerFactory) { 101 if (extension is! RequestHandlerFactory) {
102 String id = domainExtensionPoint.uniqueIdentifier; 102 String id = domainExtensionPoint.uniqueIdentifier;
103 throw new ExtensionError( 103 throw new ExtensionError(
104 'Extensions to the $id must be a RequestHandlerFactory'); 104 'Extensions to $id must be a RequestHandlerFactory');
105 } 105 }
106 } 106 }
107 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698