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

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

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.builder; 5 library fasta.builder;
6 6
7 import '../errors.dart' show internalError; 7 import '../deprecated_problems.dart' show deprecated_internalProblem;
8 8
9 export 'class_builder.dart' show ClassBuilder; 9 export 'class_builder.dart' show ClassBuilder;
10 10
11 export 'field_builder.dart' show FieldBuilder; 11 export 'field_builder.dart' show FieldBuilder;
12 12
13 export 'library_builder.dart' show LibraryBuilder; 13 export 'library_builder.dart' show LibraryBuilder;
14 14
15 export 'procedure_builder.dart' show ProcedureBuilder; 15 export 'procedure_builder.dart' show ProcedureBuilder;
16 16
17 export 'type_builder.dart' show TypeBuilder; 17 export 'type_builder.dart' show TypeBuilder;
(...skipping 19 matching lines...) Expand all
37 export '../source/unhandled_listener.dart' show Unhandled; 37 export '../source/unhandled_listener.dart' show Unhandled;
38 38
39 export 'member_builder.dart' show MemberBuilder; 39 export 'member_builder.dart' show MemberBuilder;
40 40
41 export 'modifier_builder.dart' show ModifierBuilder; 41 export 'modifier_builder.dart' show ModifierBuilder;
42 42
43 export 'prefix_builder.dart' show PrefixBuilder; 43 export 'prefix_builder.dart' show PrefixBuilder;
44 44
45 export 'invalid_type_builder.dart' show InvalidTypeBuilder; 45 export 'invalid_type_builder.dart' show InvalidTypeBuilder;
46 46
47 export '../scope.dart' show AccessErrorBuilder, Scope, ScopeBuilder; 47 export '../scope.dart' show deprecated_AccessErrorBuilder, Scope, ScopeBuilder;
48 48
49 export 'builtin_type_builder.dart' show BuiltinTypeBuilder; 49 export 'builtin_type_builder.dart' show BuiltinTypeBuilder;
50 50
51 export 'dynamic_type_builder.dart' show DynamicTypeBuilder; 51 export 'dynamic_type_builder.dart' show DynamicTypeBuilder;
52 52
53 export 'void_type_builder.dart' show VoidTypeBuilder; 53 export 'void_type_builder.dart' show VoidTypeBuilder;
54 54
55 export 'function_type_builder.dart' show FunctionTypeBuilder; 55 export 'function_type_builder.dart' show FunctionTypeBuilder;
56 56
57 import 'library_builder.dart' show LibraryBuilder; 57 import 'library_builder.dart' show LibraryBuilder;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool get isConstructor => false; 117 bool get isConstructor => false;
118 118
119 bool get isFactory => false; 119 bool get isFactory => false;
120 120
121 bool get isLocal => false; 121 bool get isLocal => false;
122 122
123 bool get isConst => false; 123 bool get isConst => false;
124 124
125 bool get isSynthetic => false; 125 bool get isSynthetic => false;
126 126
127 get target => internalError("Unsupported operation $runtimeType."); 127 get target =>
128 deprecated_internalProblem("Unsupported operation $runtimeType.");
128 129
129 bool get hasProblem => false; 130 bool get hasProblem => false;
130 131
131 String get fullNameForErrors; 132 String get fullNameForErrors;
132 133
133 Uri computeLibraryUri() { 134 Uri computeLibraryUri() {
134 Builder builder = this; 135 Builder builder = this;
135 do { 136 do {
136 if (builder is LibraryBuilder) return builder.uri; 137 if (builder is LibraryBuilder) return builder.uri;
137 builder = builder.parent; 138 builder = builder.parent;
138 } while (builder != null); 139 } while (builder != null);
139 return internalError("No library parent."); 140 return deprecated_internalProblem("No library parent.");
140 } 141 }
141 142
142 void prepareInitializerInference( 143 void prepareInitializerInference(
143 SourceLibraryBuilder library, ClassBuilder currentClass) {} 144 SourceLibraryBuilder library, ClassBuilder currentClass) {}
144 } 145 }
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/front_end/lib/src/fasta/builder/class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698