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

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

Issue 1925173002: Add a (public) utility method to clean-up code (Closed) Base URL: https://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
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 AST model. The AST (Abstract Syntax Tree) model describes the 6 * Defines the AST model. The AST (Abstract Syntax Tree) model describes the
7 * syntactic (as opposed to semantic) structure of Dart code. The semantic 7 * syntactic (as opposed to semantic) structure of Dart code. The semantic
8 * structure of the code is modeled by the 8 * structure of the code is modeled by the
9 * [element model](../element/element.dart). 9 * [element model](../element/element.dart).
10 * 10 *
(...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3031 /** 3031 /**
3032 * Return the static type of this expression, or `null` if the AST structure 3032 * Return the static type of this expression, or `null` if the AST structure
3033 * has not been resolved. 3033 * has not been resolved.
3034 */ 3034 */
3035 DartType get staticType; 3035 DartType get staticType;
3036 3036
3037 /** 3037 /**
3038 * Set the static type of this expression to the given [type]. 3038 * Set the static type of this expression to the given [type].
3039 */ 3039 */
3040 void set staticType(DartType type); 3040 void set staticType(DartType type);
3041
3042 /**
3043 * If this expression is a parenthesized expression, return the result of
3044 * unwrapping the expression inside the parentheses. Otherwise, return this
3045 * expression.
3046 */
3047 Expression get unParenthesized;
3041 } 3048 }
3042 3049
3043 /** 3050 /**
3044 * A function body consisting of a single expression. 3051 * A function body consisting of a single expression.
3045 * 3052 *
3046 * expressionFunctionBody ::= 3053 * expressionFunctionBody ::=
3047 * 'async'? '=>' [Expression] ';' 3054 * 'async'? '=>' [Expression] ';'
3048 * 3055 *
3049 * Clients may not extend, implement or mix-in this class. 3056 * Clients may not extend, implement or mix-in this class.
3050 */ 3057 */
(...skipping 5047 matching lines...) Expand 10 before | Expand all | Expand 10 after
8098 /** 8105 /**
8099 * Return the 'yield' keyword. 8106 * Return the 'yield' keyword.
8100 */ 8107 */
8101 Token get yieldKeyword; 8108 Token get yieldKeyword;
8102 8109
8103 /** 8110 /**
8104 * Return the 'yield' keyword to the given [token]. 8111 * Return the 'yield' keyword to the given [token].
8105 */ 8112 */
8106 void set yieldKeyword(Token token); 8113 void set yieldKeyword(Token token);
8107 } 8114 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698