| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 'package:kernel/ast.dart'; | 5 import 'package:kernel/ast.dart'; |
| 6 | 6 |
| 7 /// An abstract class containing factory methods that create AST objects. | 7 /// An abstract class containing factory methods that create AST objects. |
| 8 /// | 8 /// |
| 9 /// Itended for use by [BodyBuilder] so that it can create either analyzer or | 9 /// Itended for use by [BodyBuilder] so that it can create either analyzer or |
| 10 /// kernel ASTs depending on which concrete factory it is connected to. | 10 /// kernel ASTs depending on which concrete factory it is connected to. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 /// TODO(paulberry): analyzer makes a distinction between a single variable | 57 /// TODO(paulberry): analyzer makes a distinction between a single variable |
| 58 /// declaration and a variable declaration statement (which can contain | 58 /// declaration and a variable declaration statement (which can contain |
| 59 /// multiple variable declarations). Currently this API only makes sense for | 59 /// multiple variable declarations). Currently this API only makes sense for |
| 60 /// kernel, which desugars each variable declaration to its own statement. | 60 /// kernel, which desugars each variable declaration to its own statement. |
| 61 /// | 61 /// |
| 62 /// If the variable declaration did not have an explicitly declared type, | 62 /// If the variable declaration did not have an explicitly declared type, |
| 63 /// [type] should be `null`. | 63 /// [type] should be `null`. |
| 64 VariableDeclaration variableDeclaration(String name, | 64 VariableDeclaration variableDeclaration(String name, |
| 65 {DartType type, | 65 {DartType type, |
| 66 Expression initializer, | 66 Expression initializer, |
| 67 int charOffset: TreeNode.noOffset, | 67 int charOffset = TreeNode.noOffset, |
| 68 int equalsCharOffset = TreeNode.noOffset, |
| 68 bool isFinal: false, | 69 bool isFinal: false, |
| 69 bool isConst: false}); | 70 bool isConst: false}); |
| 70 } | 71 } |
| OLD | NEW |