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

Side by Side Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2980273002: Random improvements in error reporting. (Closed)
Patch Set: rebased Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
6 // 6 //
7 // Instead modify 'pkg/front_end/messages.yaml' and run 7 // Instead modify 'pkg/front_end/messages.yaml' and run
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update.
9 9
10 part of fasta.codes; 10 part of fasta.codes;
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1318 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1319 Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) { 1319 Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) {
1320 String uri = relativizeUri(uri_); 1320 String uri = relativizeUri(uri_);
1321 String uri2 = relativizeUri(uri2_); 1321 String uri2 = relativizeUri(uri2_);
1322 return new Message(codeImportHidesImport, 1322 return new Message(codeImportHidesImport,
1323 message: """Import of '$name' (from '$uri') hides import from '$uri2'.""", 1323 message: """Import of '$name' (from '$uri') hides import from '$uri2'.""",
1324 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); 1324 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_});
1325 } 1325 }
1326 1326
1327 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1327 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1328 const Template<Message Function(String string)> templateInputFileNotFound = 1328 const Template<Message Function(Uri uri_)> templateInputFileNotFound =
1329 const Template<Message Function(String string)>( 1329 const Template<Message Function(Uri uri_)>(
1330 messageTemplate: r"""Input file not found: #string.""", 1330 messageTemplate: r"""Input file not found: #uri.""",
1331 withArguments: _withArgumentsInputFileNotFound); 1331 withArguments: _withArgumentsInputFileNotFound);
1332 1332
1333 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1333 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1334 const Code<Message Function(String string)> codeInputFileNotFound = 1334 const Code<Message Function(Uri uri_)> codeInputFileNotFound =
1335 const Code<Message Function(String string)>( 1335 const Code<Message Function(Uri uri_)>(
1336 "InputFileNotFound", 1336 "InputFileNotFound",
1337 templateInputFileNotFound, 1337 templateInputFileNotFound,
1338 ); 1338 );
1339 1339
1340 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1340 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1341 Message _withArgumentsInputFileNotFound(String string) { 1341 Message _withArgumentsInputFileNotFound(Uri uri_) {
1342 String uri = relativizeUri(uri_);
1342 return new Message(codeInputFileNotFound, 1343 return new Message(codeInputFileNotFound,
1343 message: """Input file not found: $string.""", 1344 message: """Input file not found: $uri.""", arguments: {'uri': uri_});
1344 arguments: {'string': string});
1345 } 1345 }
1346 1346
1347 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1347 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1348 const Code<Null> codeInternalProblemAlreadyInitialized = 1348 const Code<Null> codeInternalProblemAlreadyInitialized =
1349 messageInternalProblemAlreadyInitialized; 1349 messageInternalProblemAlreadyInitialized;
1350 1350
1351 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1351 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1352 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( 1352 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode(
1353 "InternalProblemAlreadyInitialized", 1353 "InternalProblemAlreadyInitialized",
1354 message: r"""Attempt to set initializer on field without initializer."""); 1354 message: r"""Attempt to set initializer on field without initializer.""");
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 ); 1472 );
1473 1473
1474 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1474 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1475 Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { 1475 Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) {
1476 return new Message(codeInternalProblemPrivateConstructorAccess, 1476 return new Message(codeInternalProblemPrivateConstructorAccess,
1477 message: """Can't access private constructor '$name'.""", 1477 message: """Can't access private constructor '$name'.""",
1478 arguments: {'name': name}); 1478 arguments: {'name': name});
1479 } 1479 }
1480 1480
1481 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1481 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1482 const Code<Null> codeInternalProblemProvidedBothCompileSdkAndSdkSummary =
1483 messageInternalProblemProvidedBothCompileSdkAndSdkSummary;
1484
1485 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1486 const MessageCode messageInternalProblemProvidedBothCompileSdkAndSdkSummary =
1487 const MessageCode("InternalProblemProvidedBothCompileSdkAndSdkSummary",
1488 message:
1489 r"""The compileSdk and sdkSummary options are mutually exclusive""") ;
1490
1491 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1482 const Template<Message Function(String name, String string)> 1492 const Template<Message Function(String name, String string)>
1483 templateInternalProblemStackNotEmpty = 1493 templateInternalProblemStackNotEmpty =
1484 const Template<Message Function(String name, String string)>( 1494 const Template<Message Function(String name, String string)>(
1485 messageTemplate: r"""#name.stack isn't empty: 1495 messageTemplate: r"""#name.stack isn't empty:
1486 #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty); 1496 #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty);
1487 1497
1488 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1498 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1489 const Code<Message Function(String name, String string)> 1499 const Code<Message Function(String name, String string)>
1490 codeInternalProblemStackNotEmpty = 1500 codeInternalProblemStackNotEmpty =
1491 const Code<Message Function(String name, String string)>( 1501 const Code<Message Function(String name, String string)>(
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 const Code<Null> codeReturnTypeFunctionExpression = 2462 const Code<Null> codeReturnTypeFunctionExpression =
2453 messageReturnTypeFunctionExpression; 2463 messageReturnTypeFunctionExpression;
2454 2464
2455 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2465 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2456 const MessageCode messageReturnTypeFunctionExpression = const MessageCode( 2466 const MessageCode messageReturnTypeFunctionExpression = const MessageCode(
2457 "ReturnTypeFunctionExpression", 2467 "ReturnTypeFunctionExpression",
2458 dart2jsCode: "*ignored*", 2468 dart2jsCode: "*ignored*",
2459 message: r"""A function expression can't have a return type."""); 2469 message: r"""A function expression can't have a return type.""");
2460 2470
2461 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2471 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2462 const Template<Message Function(String string)> templateSdkRootNotFound = 2472 const Template<Message Function(Uri uri_)> templateSdkRootNotFound =
2463 const Template<Message Function(String string)>( 2473 const Template<Message Function(Uri uri_)>(
2464 messageTemplate: r"""SDK root directory not found: #string.""", 2474 messageTemplate: r"""SDK root directory not found: #uri.""",
2465 withArguments: _withArgumentsSdkRootNotFound); 2475 withArguments: _withArgumentsSdkRootNotFound);
2466 2476
2467 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2477 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2468 const Code<Message Function(String string)> codeSdkRootNotFound = 2478 const Code<Message Function(Uri uri_)> codeSdkRootNotFound =
2469 const Code<Message Function(String string)>( 2479 const Code<Message Function(Uri uri_)>(
2470 "SdkRootNotFound", 2480 "SdkRootNotFound",
2471 templateSdkRootNotFound, 2481 templateSdkRootNotFound,
2472 ); 2482 );
2473 2483
2474 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2484 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2475 Message _withArgumentsSdkRootNotFound(String string) { 2485 Message _withArgumentsSdkRootNotFound(Uri uri_) {
2486 String uri = relativizeUri(uri_);
2476 return new Message(codeSdkRootNotFound, 2487 return new Message(codeSdkRootNotFound,
2477 message: """SDK root directory not found: $string.""", 2488 message: """SDK root directory not found: $uri.""",
2478 arguments: {'string': string}); 2489 arguments: {'uri': uri_});
2479 } 2490 }
2480 2491
2481 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2492 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2482 const Template<Message Function(String string)> templateSdkSummaryNotFound = 2493 const Template<Message Function(Uri uri_)> templateSdkSummaryNotFound =
2483 const Template<Message Function(String string)>( 2494 const Template<Message Function(Uri uri_)>(
2484 messageTemplate: r"""SDK summary not found: #string.""", 2495 messageTemplate: r"""SDK summary not found: #uri.""",
2485 withArguments: _withArgumentsSdkSummaryNotFound); 2496 withArguments: _withArgumentsSdkSummaryNotFound);
2486 2497
2487 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2498 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2488 const Code<Message Function(String string)> codeSdkSummaryNotFound = 2499 const Code<Message Function(Uri uri_)> codeSdkSummaryNotFound =
2489 const Code<Message Function(String string)>( 2500 const Code<Message Function(Uri uri_)>(
2490 "SdkSummaryNotFound", 2501 "SdkSummaryNotFound",
2491 templateSdkSummaryNotFound, 2502 templateSdkSummaryNotFound,
2492 ); 2503 );
2493 2504
2494 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2505 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2495 Message _withArgumentsSdkSummaryNotFound(String string) { 2506 Message _withArgumentsSdkSummaryNotFound(Uri uri_) {
2507 String uri = relativizeUri(uri_);
2496 return new Message(codeSdkSummaryNotFound, 2508 return new Message(codeSdkSummaryNotFound,
2497 message: """SDK summary not found: $string.""", 2509 message: """SDK summary not found: $uri.""", arguments: {'uri': uri_});
2498 arguments: {'string': string});
2499 } 2510 }
2500 2511
2501 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2512 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2502 const Template<Message Function(String name)> templateSetterNotFound = 2513 const Template<Message Function(String name)> templateSetterNotFound =
2503 const Template<Message Function(String name)>( 2514 const Template<Message Function(String name)>(
2504 messageTemplate: r"""Setter not found: '#name'.""", 2515 messageTemplate: r"""Setter not found: '#name'.""",
2505 withArguments: _withArgumentsSetterNotFound); 2516 withArguments: _withArgumentsSetterNotFound);
2506 2517
2507 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2518 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2508 const Code<Message Function(String name)> codeSetterNotFound = 2519 const Code<Message Function(String name)> codeSetterNotFound =
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 3003 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
2993 3004
2994 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3005 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2995 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 3006 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
2996 3007
2997 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3008 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2998 const MessageCode messageYieldNotGenerator = const MessageCode( 3009 const MessageCode messageYieldNotGenerator = const MessageCode(
2999 "YieldNotGenerator", 3010 "YieldNotGenerator",
3000 dart2jsCode: "*ignored*", 3011 dart2jsCode: "*ignored*",
3001 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 3012 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/base/processed_options.dart ('k') | pkg/front_end/lib/src/fasta/problems.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698