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

Side by Side Diff: pkg/kernel/lib/binary/ast_to_binary.dart

Issue 2940283002: [kernel] Fix assert message. (Closed)
Patch Set: Address comments Created 3 years, 6 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
« no previous file with comments | « pkg/kernel/lib/binary/ast_from_binary.dart ('k') | pkg/kernel/lib/clone.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library kernel.ast_to_binary; 4 library kernel.ast_to_binary;
5 5
6 import '../ast.dart'; 6 import '../ast.dart';
7 import '../import_table.dart'; 7 import '../import_table.dart';
8 import 'tag.dart'; 8 import 'tag.dart';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 _variableIndexer.popScope(); 860 _variableIndexer.popScope();
861 } 861 }
862 862
863 visitEmptyStatement(EmptyStatement node) { 863 visitEmptyStatement(EmptyStatement node) {
864 writeByte(Tag.EmptyStatement); 864 writeByte(Tag.EmptyStatement);
865 } 865 }
866 866
867 visitAssertStatement(AssertStatement node) { 867 visitAssertStatement(AssertStatement node) {
868 writeByte(Tag.AssertStatement); 868 writeByte(Tag.AssertStatement);
869 writeNode(node.condition); 869 writeNode(node.condition);
870 writeOffset(node.conditionStartOffset);
871 writeOffset(node.conditionEndOffset);
870 writeOptionalNode(node.message); 872 writeOptionalNode(node.message);
871 } 873 }
872 874
873 visitLabeledStatement(LabeledStatement node) { 875 visitLabeledStatement(LabeledStatement node) {
874 _labelIndexer.enter(node); 876 _labelIndexer.enter(node);
875 writeByte(Tag.LabeledStatement); 877 writeByte(Tag.LabeledStatement);
876 writeNode(node.body); 878 writeNode(node.body);
877 _labelIndexer.exit(); 879 _labelIndexer.exit();
878 } 880 }
879 881
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 _sink.add(_buffer.sublist(0, length)); 1465 _sink.add(_buffer.sublist(0, length));
1464 _buffer = new Uint8List(SIZE); 1466 _buffer = new Uint8List(SIZE);
1465 flushedLength += length; 1467 flushedLength += length;
1466 length = 0; 1468 length = 0;
1467 } 1469 }
1468 1470
1469 void flushAndDestroy() { 1471 void flushAndDestroy() {
1470 _sink.add(_buffer.sublist(0, length)); 1472 _sink.add(_buffer.sublist(0, length));
1471 } 1473 }
1472 } 1474 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/binary/ast_from_binary.dart ('k') | pkg/kernel/lib/clone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698