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

Side by Side Diff: pkg/analyzer/lib/src/summary/format.dart

Issue 1565643002: Eliminate constructor return types from summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files".
7 7
8 library analyzer.src.summary.format; 8 library analyzer.src.summary.format;
9 9
10 import 'dart:convert'; 10 import 'dart:convert';
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 String get name => _name ?? ''; 990 String get name => _name ?? '';
991 991
992 /** 992 /**
993 * Type parameters of the executable, if any. Empty if support for generic 993 * Type parameters of the executable, if any. Empty if support for generic
994 * method syntax is disabled. 994 * method syntax is disabled.
995 */ 995 */
996 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink edTypeParam>[]; 996 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink edTypeParam>[];
997 997
998 /** 998 /**
999 * Declared return type of the executable. Absent if the return type is 999 * Declared return type of the executable. Absent if the return type is
1000 * `void`. Note that when strong mode is enabled, the actual return type may 1000 * `void` or the executable is a constructor. Note that when strong mode is
1001 * be different due to type inference. 1001 * enabled, the actual return type may be different due to type inference.
1002 */ 1002 */
1003 UnlinkedTypeRef get returnType => _returnType; 1003 UnlinkedTypeRef get returnType => _returnType;
1004 1004
1005 /** 1005 /**
1006 * Parameters of the executable, if any. Note that getters have no 1006 * Parameters of the executable, if any. Note that getters have no
1007 * parameters (hence this will be the empty list), and setters have a single 1007 * parameters (hence this will be the empty list), and setters have a single
1008 * parameter. 1008 * parameter.
1009 */ 1009 */
1010 List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[]; 1010 List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[];
1011 1011
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { 1078 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) {
1079 assert(!_finished); 1079 assert(!_finished);
1080 assert(!_json.containsKey("typeParameters")); 1080 assert(!_json.containsKey("typeParameters"));
1081 if (!(_value == null || _value.isEmpty)) { 1081 if (!(_value == null || _value.isEmpty)) {
1082 _json["typeParameters"] = _value.map((b) => b.finish()).toList(); 1082 _json["typeParameters"] = _value.map((b) => b.finish()).toList();
1083 } 1083 }
1084 } 1084 }
1085 1085
1086 /** 1086 /**
1087 * Declared return type of the executable. Absent if the return type is 1087 * Declared return type of the executable. Absent if the return type is
1088 * `void`. Note that when strong mode is enabled, the actual return type may 1088 * `void` or the executable is a constructor. Note that when strong mode is
1089 * be different due to type inference. 1089 * enabled, the actual return type may be different due to type inference.
1090 */ 1090 */
1091 void set returnType(UnlinkedTypeRefBuilder _value) { 1091 void set returnType(UnlinkedTypeRefBuilder _value) {
1092 assert(!_finished); 1092 assert(!_finished);
1093 assert(!_json.containsKey("returnType")); 1093 assert(!_json.containsKey("returnType"));
1094 if (_value != null) { 1094 if (_value != null) {
1095 _json["returnType"] = _value.finish(); 1095 _json["returnType"] = _value.finish();
1096 } 1096 }
1097 } 1097 }
1098 1098
1099 /** 1099 /**
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); 2639 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext);
2640 builder.name = name; 2640 builder.name = name;
2641 builder.type = type; 2641 builder.type = type;
2642 builder.isStatic = isStatic; 2642 builder.isStatic = isStatic;
2643 builder.isFinal = isFinal; 2643 builder.isFinal = isFinal;
2644 builder.isConst = isConst; 2644 builder.isConst = isConst;
2645 builder.hasImplicitType = hasImplicitType; 2645 builder.hasImplicitType = hasImplicitType;
2646 return builder; 2646 return builder;
2647 } 2647 }
2648 2648
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | pkg/analyzer/test/src/summary/summary_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698