| Index: packages/code_transformers/lib/src/messages.dart
|
| diff --git a/packages/code_transformers/lib/src/messages.dart b/packages/code_transformers/lib/src/messages.dart
|
| index a78969a3d8bbaf61dc4035891d9f7b16fafda440..c91fe3d055423aac664fcc17a9bd73421c0c2c6b 100644
|
| --- a/packages/code_transformers/lib/src/messages.dart
|
| +++ b/packages/code_transformers/lib/src/messages.dart
|
| @@ -9,7 +9,9 @@ import 'package:code_transformers/messages/messages.dart';
|
|
|
| const NO_ABSOLUTE_PATHS = const MessageTemplate(
|
| const MessageId('code_transformers', 1),
|
| - 'absolute paths not allowed: "%-url-%"', 'Absolute paths not allowed', '''
|
| + 'absolute paths not allowed: "%-url-%"',
|
| + 'Absolute paths not allowed',
|
| + '''
|
| The transformers processing your code were trying to resolve a URL and identify
|
| a file that they correspond to. Currently only relative paths can be resolved.
|
| ''');
|
| @@ -19,7 +21,9 @@ const INVALID_URL_TO_OTHER_PACKAGE = const MessageTemplate(
|
| 'Invalid URL to reach to another package: %-url-%. Path '
|
| 'reaching to other packages must first reach up all the '
|
| 'way to the %-prefix-% directory. For example, try changing the URL '
|
| - 'to: %-fixedUrl-%', 'Invalid URL to reach another package', '''
|
| + 'to: %-fixedUrl-%',
|
| + 'Invalid URL to reach another package',
|
| + '''
|
| To reach an asset that belongs to another package, use `package:` URLs in
|
| Dart code, but in any other language (like HTML or CSS) use relative URLs that
|
| first go all the way to the `packages/` directory.
|
| @@ -34,7 +38,8 @@ const INVALID_PREFIX_PATH = const MessageTemplate(
|
| const MessageId('code_transformers', 3),
|
| 'incomplete %-prefix-%/ path. It should have at least 3 '
|
| 'segments %-prefix-%/name/path_from_name\'s_%-folder-%_dir',
|
| - 'Incomplete URL to asset in another package', '''
|
| + 'Incomplete URL to asset in another package',
|
| + '''
|
| URLs that refer to assets in other packages need to explicitly mention the
|
| `packages/` directory. In the future this requirement might be removed, but for
|
| now you must use a canonical URL form for it.
|
| @@ -50,7 +55,8 @@ See [issue 15797](http://dartbug.com/15797) and
|
| const UNSPECIFIED_FROM_IN_NON_LIB_ASSET = const MessageTemplate(
|
| const MessageId('code_transformers', 4),
|
| 'Cannot create URI for %-id-% without specifying where to import it from.',
|
| - 'Missing `from` argument.', '''
|
| + 'Missing `from` argument.',
|
| + '''
|
| Assets outside of the lib folder can only be imported via relative URIs. Use
|
| the `from` argument in `assetIdToUri` to specify the location in the same
|
| package where you intend to import this asset from.
|
| @@ -58,7 +64,8 @@ package where you intend to import this asset from.
|
|
|
| const IMPORT_FROM_DIFFERENT_PACKAGE = const MessageTemplate(
|
| const MessageId('code_transformers', 5),
|
| - 'Not possible to import %-toId-% from %-fromId-%', 'Cannot import asset.',
|
| + 'Not possible to import %-toId-% from %-fromId-%',
|
| + 'Cannot import asset.',
|
| '''
|
| Assets outside of the lib folder can only be imported via relative URIs from
|
| assets in the same package. To import an asset from another package, you need to
|
|
|