OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |