| OLD | NEW |
| 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.plugin.plugin; | 5 library analyzer.plugin.plugin; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A function used to register the given [extension] to the extension point with | 8 * A function used to register the given [extension] to the extension point with |
| 9 * the given unique [identifier]. | 9 * the given unique [identifier]. |
| 10 * | 10 * |
| 11 * An [ExtensionError] will be thrown if the [extension] is not appropriate | 11 * An [ExtensionError] will be thrown if the [extension] is not appropriate |
| 12 * for the extension point, such as an [extension] that does not implement the | 12 * for the extension point, such as an [extension] that does not implement the |
| 13 * required interface. | 13 * required interface. |
| 14 */ | 14 */ |
| 15 typedef void RegisterExtension(String identifier, Object extension); | 15 typedef void RegisterExtension(String identifier, Object extension); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 static String buildUniqueIdentifier(Plugin plugin, String simpleIdentifier) => | 121 static String buildUniqueIdentifier(Plugin plugin, String simpleIdentifier) => |
| 122 join(plugin.uniqueIdentifier, simpleIdentifier); | 122 join(plugin.uniqueIdentifier, simpleIdentifier); |
| 123 | 123 |
| 124 /** | 124 /** |
| 125 * Return an identifier created by joining the [pluginIdentifier] and the | 125 * Return an identifier created by joining the [pluginIdentifier] and the |
| 126 * [simpleIdentifier]. | 126 * [simpleIdentifier]. |
| 127 */ | 127 */ |
| 128 static String join(String pluginIdentifier, String simpleIdentifier) => | 128 static String join(String pluginIdentifier, String simpleIdentifier) => |
| 129 '$pluginIdentifier.$simpleIdentifier'; | 129 '$pluginIdentifier.$simpleIdentifier'; |
| 130 } | 130 } |
| OLD | NEW |