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

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

Issue 624403002: Write end-of-block comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.constant; 8 library engine.constant;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // The name either doesn't exist in the environment or we couldn't parse t he corresponding 604 // The name either doesn't exist in the environment or we couldn't parse t he corresponding
605 // value. If the code supplied an explicit default, use it. 605 // value. If the code supplied an explicit default, use it.
606 if (namedArgumentValues.containsKey(_DEFAULT_VALUE_PARAM)) { 606 if (namedArgumentValues.containsKey(_DEFAULT_VALUE_PARAM)) {
607 value = namedArgumentValues[_DEFAULT_VALUE_PARAM]; 607 value = namedArgumentValues[_DEFAULT_VALUE_PARAM];
608 } else if (value.isNull) { 608 } else if (value.isNull) {
609 // The code didn't supply an explicit default. The name exists in the e nvironment but 609 // The code didn't supply an explicit default. The name exists in the e nvironment but
610 // we couldn't parse the corresponding value. So use the built-in defau lt value, because 610 // we couldn't parse the corresponding value. So use the built-in defau lt value, because
611 // this is what the VM does. 611 // this is what the VM does.
612 value = builtInDefaultValue; 612 value = builtInDefaultValue;
613 } else { 613 } else {
614 // The code didn't supply an explicit default. The name doesn't exist i n the environment.
615 // The VM would use the built-in default value, but we don't want to do that for analysis
616 // because it's likely to lead to cascading errors. So just leave [valu e] in the unknown
617 // state.
614 } 618 }
615 } 619 }
616 return value; 620 return value;
617 } 621 }
618 622
619 DartObjectImpl _evaluateConstructorCall(AstNode node, NodeList<Expression> arg uments, ConstructorElement constructor, ConstantVisitor constantVisitor, ErrorRe porter errorReporter) { 623 DartObjectImpl _evaluateConstructorCall(AstNode node, NodeList<Expression> arg uments, ConstructorElement constructor, ConstantVisitor constantVisitor, ErrorRe porter errorReporter) {
620 int argumentCount = arguments.length; 624 int argumentCount = arguments.length;
621 List<DartObjectImpl> argumentValues = new List<DartObjectImpl>(argumentCount ); 625 List<DartObjectImpl> argumentValues = new List<DartObjectImpl>(argumentCount );
622 HashMap<String, DartObjectImpl> namedArgumentValues = new HashMap<String, Da rtObjectImpl>(); 626 HashMap<String, DartObjectImpl> namedArgumentValues = new HashMap<String, Da rtObjectImpl>();
623 for (int i = 0; i < argumentCount; i++) { 627 for (int i = 0; i < argumentCount; i++) {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 810
807 /** 811 /**
808 * Generate an error indicating that the given constant is not a valid compile -time constant 812 * Generate an error indicating that the given constant is not a valid compile -time constant
809 * because it references at least one of the constants in the given cycle, eac h of which directly 813 * because it references at least one of the constants in the given cycle, eac h of which directly
810 * or indirectly references the constant. 814 * or indirectly references the constant.
811 * 815 *
812 * @param constantsInCycle the constants in the cycle that includes the given constant 816 * @param constantsInCycle the constants in the cycle that includes the given constant
813 * @param constant the constant that is not a valid compile-time constant 817 * @param constant the constant that is not a valid compile-time constant
814 */ 818 */
815 void _generateCycleError(List<AstNode> constantsInCycle, AstNode constant) { 819 void _generateCycleError(List<AstNode> constantsInCycle, AstNode constant) {
820 // TODO(brianwilkerson) Implement this.
816 } 821 }
817 822
818 ConstructorElement _getConstructorBase(ConstructorElement constructor) { 823 ConstructorElement _getConstructorBase(ConstructorElement constructor) {
819 while (constructor is ConstructorMember) { 824 while (constructor is ConstructorMember) {
820 constructor = (constructor as ConstructorMember).baseElement; 825 constructor = (constructor as ConstructorMember).baseElement;
821 } 826 }
822 return constructor; 827 return constructor;
823 } 828 }
824 } 829 }
825 830
(...skipping 3737 matching lines...) Expand 10 before | Expand all | Expand 10 after
4563 4568
4564 @override 4569 @override
4565 String get typeName => "Type"; 4570 String get typeName => "Type";
4566 4571
4567 @override 4572 @override
4568 int get hashCode => _element == null ? 0 : _element.hashCode; 4573 int get hashCode => _element == null ? 0 : _element.hashCode;
4569 4574
4570 @override 4575 @override
4571 String toString() => _element == null ? "-unknown-" : _element.name; 4576 String toString() => _element == null ? "-unknown-" : _element.name;
4572 } 4577 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698