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

Side by Side Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 1968543002: Add 'ParameterizedType get type' to TypeParameterizedElement. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | pkg/analyzer/lib/src/generated/error_verifier.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /** 5 /**
6 * Defines the element model. The element model describes the semantic (as 6 * Defines the element model. The element model describes the semantic (as
7 * opposed to syntactic) structure of Dart code. The syntactic structure of the 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the
8 * code is modeled by the [AST structure](../ast/ast.dart). 8 * code is modeled by the [AST structure](../ast/ast.dart).
9 * 9 *
10 * The element model consists of two closely related kinds of objects: elements 10 * The element model consists of two closely related kinds of objects: elements
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 } 1855 }
1856 1856
1857 /** 1857 /**
1858 * An element that has type parameters, such as a class or a typedef. This also 1858 * An element that has type parameters, such as a class or a typedef. This also
1859 * includes functions and methods if support for generic methods is enabled. 1859 * includes functions and methods if support for generic methods is enabled.
1860 * 1860 *
1861 * Clients may not extend, implement or mix-in this class. 1861 * Clients may not extend, implement or mix-in this class.
1862 */ 1862 */
1863 abstract class TypeParameterizedElement implements Element { 1863 abstract class TypeParameterizedElement implements Element {
1864 /** 1864 /**
1865 * The type of this element, which will be a parameterized type.
1866 */
1867 ParameterizedType get type;
1868
1869 /**
1865 * Return a list containing all of the type parameters declared by this 1870 * Return a list containing all of the type parameters declared by this
1866 * element directly. This does not include type parameters that are declared 1871 * element directly. This does not include type parameters that are declared
1867 * by any enclosing elements. 1872 * by any enclosing elements.
1868 */ 1873 */
1869 List<TypeParameterElement> get typeParameters; 1874 List<TypeParameterElement> get typeParameters;
1870 } 1875 }
1871 1876
1872 /** 1877 /**
1873 * A pseudo-elements that represents names that are undefined. This situation is 1878 * A pseudo-elements that represents names that are undefined. This situation is
1874 * not allowed by the language, so objects implementing this interface always 1879 * not allowed by the language, so objects implementing this interface always
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 */ 1995 */
1991 bool get isStatic; 1996 bool get isStatic;
1992 1997
1993 /** 1998 /**
1994 * Return the declared type of this variable, or `null` if the variable did 1999 * Return the declared type of this variable, or `null` if the variable did
1995 * not have a declared type (such as if it was declared using the keyword 2000 * not have a declared type (such as if it was declared using the keyword
1996 * 'var'). 2001 * 'var').
1997 */ 2002 */
1998 DartType get type; 2003 DartType get type;
1999 } 2004 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698