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

Side by Side Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 1878253002: Adds support for remaining generic method syntax constructs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review 2 response Created 4 years, 8 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 'dart:collection' show IterableMixin; 5 import 'dart:collection' show IterableMixin;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../tokens/precedence_constants.dart' as Precedence show FUNCTION_INFO; 8 import '../tokens/precedence_constants.dart' as Precedence show FUNCTION_INFO;
9 import '../tokens/token.dart' show BeginGroupToken, Token; 9 import '../tokens/token.dart' show BeginGroupToken, Token;
10 import '../tokens/token_constants.dart' as Tokens 10 import '../tokens/token_constants.dart' as Tokens
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 Token getBeginToken() => typeName.getBeginToken(); 1730 Token getBeginToken() => typeName.getBeginToken();
1731 1731
1732 Token getEndToken() { 1732 Token getEndToken() {
1733 if (typeArguments != null) return typeArguments.getEndToken(); 1733 if (typeArguments != null) return typeArguments.getEndToken();
1734 return typeName.getEndToken(); 1734 return typeName.getEndToken();
1735 } 1735 }
1736 } 1736 }
1737 1737
1738 class TypeVariable extends Node { 1738 class TypeVariable extends Node {
1739 final Identifier name; 1739 final Identifier name;
1740 final Token extendsOrSuper;
1740 final TypeAnnotation bound; 1741 final TypeAnnotation bound;
1741 TypeVariable(Identifier this.name, TypeAnnotation this.bound); 1742 TypeVariable(this.name, this.extendsOrSuper, this.bound);
1742 1743
1743 accept(Visitor visitor) => visitor.visitTypeVariable(this); 1744 accept(Visitor visitor) => visitor.visitTypeVariable(this);
1744 1745
1745 accept1(Visitor1 visitor, arg) => visitor.visitTypeVariable(this, arg); 1746 accept1(Visitor1 visitor, arg) => visitor.visitTypeVariable(this, arg);
1746 1747
1747 visitChildren(Visitor visitor) { 1748 visitChildren(Visitor visitor) {
1748 name.accept(visitor); 1749 name.accept(visitor);
1749 if (bound != null) { 1750 if (bound != null) {
1750 bound.accept(visitor); 1751 bound.accept(visitor);
1751 } 1752 }
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
3114 3115
3115 // VariableDefinitions. 3116 // VariableDefinitions.
3116 get metadata => null; 3117 get metadata => null;
3117 get type => null; 3118 get type => null;
3118 3119
3119 // Typedef. 3120 // Typedef.
3120 get typeParameters => null; 3121 get typeParameters => null;
3121 get formals => null; 3122 get formals => null;
3122 get typedefKeyword => null; 3123 get typedefKeyword => null;
3123 } 3124 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/scanner/array_based_scanner.dart ('k') | tests/language/generic_functions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698