Chromium Code Reviews| 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.class_builder; | 5 library fasta.class_builder; |
| 6 | 6 |
| 7 import '../errors.dart' show internalError; | 7 import '../errors.dart' show internalError; |
| 8 | 8 |
| 9 import 'builder.dart' | 9 import 'builder.dart' |
| 10 show | 10 show |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 if (substitutionMap != null) { | 180 if (substitutionMap != null) { |
| 181 argument = argument.subst(substitutionMap); | 181 argument = argument.subst(substitutionMap); |
| 182 } | 182 } |
| 183 directSubstitutionMap[variables[i]] = argument; | 183 directSubstitutionMap[variables[i]] = argument; |
| 184 } | 184 } |
| 185 substitutionMap = directSubstitutionMap; | 185 substitutionMap = directSubstitutionMap; |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 return substitutionMap; | 188 return substitutionMap; |
| 189 } | 189 } |
| 190 | |
| 191 void addCompileTimeError(int charOffset, String message) { | |
| 192 library.addCompileTimeError(charOffset, message, fileUri: fileUri); | |
| 193 } | |
| 194 | |
| 195 void addWarning(int charOffset, String message) { | |
| 196 library.addWarning(charOffset, message, fileUri: fileUri); | |
| 197 } | |
| 198 | |
| 199 void addNit(int charOffset, String message) { | |
| 200 library.addNit(charOffset, message, fileUri: fileUri); | |
|
Paul Berry
2017/03/22 16:22:30
Not a blocking issue for this CL, but when we next
ahe
2017/03/22 17:49:49
I agree. I use "nit" to report warnings that aren'
ahe
2017/03/23 11:35:35
I did that in CL 2770683005.
| |
| 201 } | |
| 190 } | 202 } |
| OLD | NEW |