| 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 /// Logic to build unlinked summaries. | 5 /// Logic to build unlinked summaries. |
| 6 library summary.src.summary_builder; | 6 library summary.src.summary_builder; |
| 7 | 7 |
| 8 import 'package:front_end/src/fasta/parser/class_member_parser.dart'; | 8 import 'package:front_end/src/fasta/parser/class_member_parser.dart'; |
| 9 import 'package:front_end/src/fasta/parser/identifier_context.dart'; | 9 import 'package:front_end/src/fasta/parser/identifier_context.dart'; |
| 10 import 'package:front_end/src/fasta/parser/parser.dart'; | 10 import 'package:front_end/src/fasta/parser/parser.dart'; |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 Token covariantKeyword, Token thisKeyword, FormalParameterType kind) { | 266 Token covariantKeyword, Token thisKeyword, FormalParameterType kind) { |
| 267 debugEvent("FormalParameter"); | 267 debugEvent("FormalParameter"); |
| 268 assert(ignore); | 268 assert(ignore); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void endFormalParameters(int c, begin, end) { | 271 void endFormalParameters(int c, begin, end) { |
| 272 debugEvent("FormalParameters"); | 272 debugEvent("FormalParameters"); |
| 273 assert(ignore); | 273 assert(ignore); |
| 274 } | 274 } |
| 275 | 275 |
| 276 void endFunctionBody(int count, Token begin, Token end) { | 276 void endBlockFunctionBody(int count, Token begin, Token end) { |
| 277 debugEvent("FunctionBody"); | 277 debugEvent("BlockFunctionBody"); |
| 278 assert(ignore); | 278 assert(ignore); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void endFunctionDeclaration(token) { | 281 void endFunctionDeclaration(token) { |
| 282 debugEvent("FunctionDeclaration"); | 282 debugEvent("FunctionDeclaration"); |
| 283 _withinFunction--; | 283 _withinFunction--; |
| 284 if (ignore) return; | 284 if (ignore) return; |
| 285 _endFunction(); | 285 _endFunction(); |
| 286 } | 286 } |
| 287 | 287 |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 /// Internal representation of an initialized name. | 1592 /// Internal representation of an initialized name. |
| 1593 class _InitializedName { | 1593 class _InitializedName { |
| 1594 final String name; | 1594 final String name; |
| 1595 final UnlinkedExecutableBuilder initializer; | 1595 final UnlinkedExecutableBuilder initializer; |
| 1596 _InitializedName(this.name, this.initializer); | 1596 _InitializedName(this.name, this.initializer); |
| 1597 | 1597 |
| 1598 toString() => "II:" + (initializer != null ? "$name = $initializer" : name); | 1598 toString() => "II:" + (initializer != null ? "$name = $initializer" : name); |
| 1599 } | 1599 } |
| OLD | NEW |