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 plugin; | 5 library 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 * |
(...skipping 110 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 |