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

Side by Side Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 1716463002: More shared messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments. Created 4 years, 10 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) 2014, the Dart project authors. Please see the AUTHORS file 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 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 analyzer.src.generated.parser; 5 library analyzer.src.generated.parser;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 9664 matching lines...) Expand 10 before | Expand all | Expand 10 after
9675 9675
9676 static const ParserErrorCode MISSING_ENUM_BODY = const ParserErrorCode( 9676 static const ParserErrorCode MISSING_ENUM_BODY = const ParserErrorCode(
9677 'MISSING_ENUM_BODY', 9677 'MISSING_ENUM_BODY',
9678 "An enum definition must have a body with at least one constant name"); 9678 "An enum definition must have a body with at least one constant name");
9679 9679
9680 static const ParserErrorCode MISSING_EXPRESSION_IN_INITIALIZER = 9680 static const ParserErrorCode MISSING_EXPRESSION_IN_INITIALIZER =
9681 const ParserErrorCode('MISSING_EXPRESSION_IN_INITIALIZER', 9681 const ParserErrorCode('MISSING_EXPRESSION_IN_INITIALIZER',
9682 "Expected an expression after the assignment operator"); 9682 "Expected an expression after the assignment operator");
9683 9683
9684 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = 9684 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW =
9685 const ParserErrorCode('MISSING_EXPRESSION_IN_THROW', 9685 shared_messages.MISSING_EXPRESSION_IN_THROW;
9686 "Throw expressions must compute the object to be thrown");
9687 9686
9688 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode( 9687 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode(
9689 'MISSING_FUNCTION_BODY', "A function body must be provided"); 9688 'MISSING_FUNCTION_BODY', "A function body must be provided");
9690 9689
9691 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = 9690 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS =
9692 const ParserErrorCode('MISSING_FUNCTION_PARAMETERS', 9691 const ParserErrorCode('MISSING_FUNCTION_PARAMETERS',
9693 "Functions must have an explicit list of parameters"); 9692 "Functions must have an explicit list of parameters");
9694 9693
9695 static const ParserErrorCode MISSING_METHOD_PARAMETERS = 9694 static const ParserErrorCode MISSING_METHOD_PARAMETERS =
9696 const ParserErrorCode('MISSING_METHOD_PARAMETERS', 9695 const ParserErrorCode('MISSING_METHOD_PARAMETERS',
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
11352 } 11351 }
11353 11352
11354 /** 11353 /**
11355 * Copy resolution data from the [fromNode] to the [toNode]. 11354 * Copy resolution data from the [fromNode] to the [toNode].
11356 */ 11355 */
11357 static void copyResolutionData(AstNode fromNode, AstNode toNode) { 11356 static void copyResolutionData(AstNode fromNode, AstNode toNode) {
11358 ResolutionCopier copier = new ResolutionCopier(); 11357 ResolutionCopier copier = new ResolutionCopier();
11359 copier._isEqualNodes(fromNode, toNode); 11358 copier._isEqualNodes(fromNode, toNode);
11360 } 11359 }
11361 } 11360 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698