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

Side by Side Diff: lib/src/codegen/ast_builder.dart

Issue 1710583002: Fix tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix hints and reformat Created 4 years, 10 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 | « lib/src/codegen/assignments_index.dart ('k') | lib/src/codegen/js_codegen.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'package:analyzer/dart/ast/token.dart';
6 import 'package:analyzer/src/dart/ast/token.dart';
5 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
6 import 'package:analyzer/src/generated/scanner.dart';
7 import 'package:analyzer/src/generated/utilities_dart.dart'; 8 import 'package:analyzer/src/generated/utilities_dart.dart';
8 import 'package:logging/logging.dart' as logger; 9 import 'package:logging/logging.dart' as logger;
9 10
10 final _log = new logger.Logger('dev_compiler.ast_builder'); 11 final _log = new logger.Logger('dev_compiler.ast_builder');
11 12
12 // Wrappers around constructors for the dart ast. The AstBuilder class 13 // Wrappers around constructors for the dart ast. The AstBuilder class
13 // provides a higher-level interface, abstracting both from the lexical 14 // provides a higher-level interface, abstracting both from the lexical
14 // details and some of helper classes. The RawAstBuilder class provides 15 // details and some of helper classes. The RawAstBuilder class provides
15 // a low-level wrapper class (below) abstracts from the lexical details 16 // a low-level wrapper class (below) abstracts from the lexical details
16 // but otherwise faithfully mirrors the construction API. 17 // but otherwise faithfully mirrors the construction API.
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 Label l = new Label(s, new Token(TokenType.COLON, 0)); 585 Label l = new Label(s, new Token(TokenType.COLON, 0));
585 return new NamedExpression(l, e); 586 return new NamedExpression(l, e);
586 } 587 }
587 588
588 static VariableDeclarationStatement variableDeclarationStatement( 589 static VariableDeclarationStatement variableDeclarationStatement(
589 VariableDeclarationList varDecl) { 590 VariableDeclarationList varDecl) {
590 var semi = new Token(TokenType.SEMICOLON, 0); 591 var semi = new Token(TokenType.SEMICOLON, 0);
591 return new VariableDeclarationStatement(varDecl, semi); 592 return new VariableDeclarationStatement(varDecl, semi);
592 } 593 }
593 } 594 }
OLDNEW
« no previous file with comments | « lib/src/codegen/assignments_index.dart ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698