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

Side by Side Diff: pkg/analyzer/lib/src/kernel/ast_from_analyzer.dart

Issue 2943103002: Fix bot failure because of missed update of AssertStatement (Closed)
Patch Set: 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 | « no previous file | no next file » | 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.analyzer.ast_from_analyzer; 4 library kernel.analyzer.ast_from_analyzer;
5 5
6 import 'package:kernel/ast.dart' as ast; 6 import 'package:kernel/ast.dart' as ast;
7 import 'package:kernel/frontend/super_initializers.dart'; 7 import 'package:kernel/frontend/super_initializers.dart';
8 import 'package:kernel/log.dart'; 8 import 'package:kernel/log.dart';
9 import 'package:kernel/type_algebra.dart'; 9 import 'package:kernel/type_algebra.dart';
10 import 'package:kernel/transformations/flags.dart'; 10 import 'package:kernel/transformations/flags.dart';
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 LabelStack findLabelTarget(String label, LabelStack stack) { 992 LabelStack findLabelTarget(String label, LabelStack stack) {
993 while (stack != null) { 993 while (stack != null) {
994 if (stack.labels.contains(label)) return stack; 994 if (stack.labels.contains(label)) return stack;
995 stack = stack.next; 995 stack = stack.next;
996 } 996 }
997 return null; 997 return null;
998 } 998 }
999 999
1000 ast.Statement visitAssertStatement(AssertStatement node) { 1000 ast.Statement visitAssertStatement(AssertStatement node) {
1001 return new ast.AssertStatement(scope.buildExpression(node.condition), 1001 return new ast.AssertStatement(scope.buildExpression(node.condition),
1002 scope.buildOptionalExpression(node.message)); 1002 message: scope.buildOptionalExpression(node.message));
1003 } 1003 }
1004 1004
1005 ast.Statement visitBlock(Block node) { 1005 ast.Statement visitBlock(Block node) {
1006 List<ast.Statement> statements = <ast.Statement>[]; 1006 List<ast.Statement> statements = <ast.Statement>[];
1007 for (Statement statement in node.statements) { 1007 for (Statement statement in node.statements) {
1008 buildBlockMember(statement, statements); 1008 buildBlockMember(statement, statements);
1009 } 1009 }
1010 return new ast.Block(statements); 1010 return new ast.Block(statements);
1011 } 1011 }
1012 1012
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after
3087 if (list[i - 1].compareTo(item) == 0) { 3087 if (list[i - 1].compareTo(item) == 0) {
3088 ++deleted; 3088 ++deleted;
3089 } else if (deleted > 0) { 3089 } else if (deleted > 0) {
3090 list[i - deleted] = item; 3090 list[i - deleted] = item;
3091 } 3091 }
3092 } 3092 }
3093 if (deleted > 0) { 3093 if (deleted > 0) {
3094 list.length -= deleted; 3094 list.length -= deleted;
3095 } 3095 }
3096 } 3096 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698