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

Side by Side Diff: observatory_pub_packages/code_transformers/src/messages.dart

Issue 816693004: Add observatory_pub_packages snapshot to third_party (Closed) Base URL: http://dart.googlecode.com/svn/third_party/
Patch Set: Created 6 years 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
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4
5 /// Contains all warning messages produced by the code_transformers package.
6 library code_transformers.src.messages;
7
8 import 'package:code_transformers/messages/messages.dart';
9
10 const NO_ABSOLUTE_PATHS = const MessageTemplate(
11 const MessageId('code_transformers', 1),
12 'absolute paths not allowed: "%-url-%"',
13 'Absolute paths not allowed',
14 '''
15 The transformers processing your code were trying to resolve a URL and identify
16 a file that they correspond to. Currently only relative paths can be resolved.
17 ''');
18
19 const INVALID_URL_TO_OTHER_PACKAGE = const MessageTemplate(
20 const MessageId('code_transformers', 2),
21 'Invalid URL to reach to another package: %-url-%. Path '
22 'reaching to other packages must first reach up all the '
23 'way to the %-prefix-% directory. For example, try changing the URL '
24 'to: %-fixedUrl-%',
25 'Invalid URL to reach another package',
26 '''
27 To reach an asset that belongs to another package, use `package:` URLs in
28 Dart code, but in any other language (like HTML or CSS) use relative URLs that
29 first go all the way to the `packages/` directory.
30
31 The rules for correctly writing these imports are subtle and have a lot of
32 special cases. Please review
33 <https://www.dartlang.org/polymer/app-directories.html> to learn
34 more.
35 ''');
36
37 const INVALID_PREFIX_PATH = const MessageTemplate(
38 const MessageId('code_transformers', 3),
39 'incomplete %-prefix-%/ path. It should have at least 3 '
40 'segments %-prefix-%/name/path_from_name\'s_%-folder-%_dir',
41 'Incomplete URL to asset in another package',
42 '''
43 URLs that refer to assets in other packages need to explicitly mention the
44 `packages/` directory. In the future this requirement might be removed, but for
45 now you must use a canonical URL form for it.
46
47 For example, if `packages/a/a.html` needs to import `packages/b/b.html`,
48 you might expect a.html to import `../b/b.html`. Instead, it must import
49 `../../packages/b/b.html`.
50
51 See [issue 15797](http://dartbug.com/15797) and
52 <https://www.dartlang.org/polymer/app-directories.html> to learn more.
53 ''');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698