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

Side by Side Diff: pkg/front_end/lib/src/fasta/dill/dill_member_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.dill_member_builder; 5 library fasta.dill_member_builder;
6 6
7 import 'package:kernel/ast.dart' 7 import 'package:kernel/ast.dart'
8 show Constructor, Field, Member, Procedure, ProcedureKind; 8 show Constructor, Field, Member, Procedure, ProcedureKind;
9 9
10 import '../errors.dart' show internalError; 10 import '../deprecated_problems.dart' show deprecated_internalProblem;
11 11
12 import '../kernel/kernel_builder.dart' 12 import '../kernel/kernel_builder.dart'
13 show 13 show
14 Builder, 14 Builder,
15 MemberBuilder, 15 MemberBuilder,
16 isRedirectingGenerativeConstructorImplementation; 16 isRedirectingGenerativeConstructorImplementation;
17 17
18 import '../modifier.dart' 18 import '../modifier.dart'
19 show abstractMask, constMask, externalMask, finalMask, staticMask; 19 show abstractMask, constMask, externalMask, finalMask, staticMask;
20 20
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (member is Field) { 70 if (member is Field) {
71 modifier |= member.isConst ? constMask : 0; 71 modifier |= member.isConst ? constMask : 0;
72 modifier |= member.isFinal ? finalMask : 0; 72 modifier |= member.isFinal ? finalMask : 0;
73 modifier |= member.isStatic ? staticMask : 0; 73 modifier |= member.isStatic ? staticMask : 0;
74 } else if (member is Procedure) { 74 } else if (member is Procedure) {
75 modifier |= member.isConst ? constMask : 0; 75 modifier |= member.isConst ? constMask : 0;
76 modifier |= member.isStatic ? staticMask : 0; 76 modifier |= member.isStatic ? staticMask : 0;
77 } else if (member is Constructor) { 77 } else if (member is Constructor) {
78 modifier |= member.isConst ? constMask : 0; 78 modifier |= member.isConst ? constMask : 0;
79 } else { 79 } else {
80 internalError("Unhandled: ${member.runtimeType}"); 80 deprecated_internalProblem("Unhandled: ${member.runtimeType}");
81 } 81 }
82 return modifier; 82 return modifier;
83 } 83 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_loader.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698