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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2734113004: Fix a few instances of TypeName in AstBuilder (should be TypeAnnotation). (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
index ea08eaf32f016713be51daca112e2495eba608d6..1edbdd2bf1d5774e67c2de77c3d7ac5401951fc7 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
@@ -420,7 +420,7 @@ class AstBuilder extends ScopeListener {
void endVariablesDeclaration(int count, Token endToken) {
debugEvent("VariablesDeclaration");
List<VariableDeclaration> variables = popList(count);
- TypeName type = pop();
+ TypeAnnotation type = pop();
pop(); // TODO(paulberry): Modifiers.
push(ast.variableDeclarationStatement(
ast.variableDeclarationList(null, null, null, type, variables),
@@ -556,7 +556,7 @@ class AstBuilder extends ScopeListener {
void handleIsOperator(Token operator, Token not, Token endToken) {
debugEvent("IsOperator");
- TypeName type = pop();
+ TypeAnnotation type = pop();
Expression expression = pop();
push(ast.isExpression(
expression, toAnalyzerToken(operator), toAnalyzerToken(not), type));
@@ -672,7 +672,7 @@ class AstBuilder extends ScopeListener {
FormalParameterList formalParameters = pop();
TypeParameterList typeParameters = pop();
SimpleIdentifier name = pop();
- TypeName returnType = pop();
+ TypeAnnotation returnType = pop();
{
_Modifiers modifiers = pop();
@@ -741,7 +741,7 @@ class AstBuilder extends ScopeListener {
if (catchKeyword != null) {
exitLocalScope();
}
- TypeName type = popIfNotNull(onKeyword);
+ TypeAnnotation type = popIfNotNull(onKeyword);
SimpleIdentifier exception;
SimpleIdentifier stackTrace;
if (catchParameters != null) {
« 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