| Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
|
| index 5144b0acd096f17567aab010cd9f8d1c1878e45c..8c3fe05c78889b027aa9de3237c66f0bc6622bff 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
|
| @@ -31,10 +31,10 @@ class SsaCodeGeneratorTask extends CompilerTask {
|
| }
|
| // TODO(podivilov): find the right sourceFile here and remove offset checks
|
| // below.
|
| - if (beginToken.charOffset < sourceFile.text.length) {
|
| + if (beginToken.charOffset < sourceFile.length) {
|
| node.sourcePosition = new SourceFileLocation(sourceFile, beginToken);
|
| }
|
| - if (endToken.charOffset < sourceFile.text.length) {
|
| + if (endToken.charOffset < sourceFile.length) {
|
| node.endSourcePosition = new SourceFileLocation(sourceFile, endToken);
|
| }
|
| return node;
|
|
|