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

Side by Side Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 2987503003: Further integration of front end type inference into analyzer. (Closed)
Patch Set: Created 3 years, 5 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
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 4
5 library fasta.analyzer.ast_builder; 5 library fasta.analyzer.ast_builder;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/dart/ast/ast_factory.dart' show AstFactory; 8 import 'package:analyzer/dart/ast/ast_factory.dart' show AstFactory;
9 import 'package:analyzer/dart/ast/standard_ast_factory.dart' as standard; 9 import 'package:analyzer/dart/ast/standard_ast_factory.dart' as standard;
10 import 'package:analyzer/dart/ast/token.dart' show Token, TokenType; 10 import 'package:analyzer/dart/ast/token.dart' show Token, TokenType;
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 push(ast.fieldDeclaration2( 1727 push(ast.fieldDeclaration2(
1728 comment: comment, 1728 comment: comment,
1729 metadata: metadata, 1729 metadata: metadata,
1730 covariantKeyword: covariantKeyword, 1730 covariantKeyword: covariantKeyword,
1731 staticKeyword: modifiers?.staticKeyword, 1731 staticKeyword: modifiers?.staticKeyword,
1732 fieldList: variableList, 1732 fieldList: variableList,
1733 semicolon: endToken)); 1733 semicolon: endToken));
1734 } 1734 }
1735 1735
1736 @override 1736 @override
1737 AstNode finishFields() {
1738 debugEvent("finishFields");
1739 return pop();
1740 }
1741
1742 @override
1737 void handleOperatorName(Token operatorKeyword, Token token) { 1743 void handleOperatorName(Token operatorKeyword, Token token) {
1738 debugEvent("OperatorName"); 1744 debugEvent("OperatorName");
1739 push(new _OperatorName( 1745 push(new _OperatorName(
1740 operatorKeyword, ast.simpleIdentifier(token, isDeclaration: true))); 1746 operatorKeyword, ast.simpleIdentifier(token, isDeclaration: true)));
1741 } 1747 }
1742 1748
1743 @override 1749 @override
1744 void beginMetadataStar(Token token) { 1750 void beginMetadataStar(Token token) {
1745 debugEvent("beginMetadataStar"); 1751 debugEvent("beginMetadataStar");
1746 if (token.precedingComments != null) { 1752 if (token.precedingComments != null) {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 } else if (identical('var', s)) { 2002 } else if (identical('var', s)) {
1997 finalConstOrVarKeyword = token; 2003 finalConstOrVarKeyword = token;
1998 } else if (identical('covariant', s)) { 2004 } else if (identical('covariant', s)) {
1999 covariantKeyword = token; 2005 covariantKeyword = token;
2000 } else { 2006 } else {
2001 unhandled("$s", "modifier", token.charOffset, null); 2007 unhandled("$s", "modifier", token.charOffset, null);
2002 } 2008 }
2003 } 2009 }
2004 } 2010 }
2005 } 2011 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/analyzer_diet_listener.dart ('k') | pkg/analyzer/lib/src/fasta/resolution_applier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698