OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:collection' show Queue; | 6 import 'dart:collection' show Queue; |
7 | 7 |
8 import 'package:kernel/ast.dart' as ir; | 8 import 'package:kernel/ast.dart' as ir; |
9 import 'package:kernel/checks.dart' show CheckParentPointers; | 9 import 'package:kernel/checks.dart' show CheckParentPointers; |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 final Map<TypeVariableElement, ir.TypeParameter> factoryTypeParameters = | 66 final Map<TypeVariableElement, ir.TypeParameter> factoryTypeParameters = |
67 <TypeVariableElement, ir.TypeParameter>{}; | 67 <TypeVariableElement, ir.TypeParameter>{}; |
68 | 68 |
69 final Set<ir.TreeNode> checkedNodes = new Set<ir.TreeNode>(); | 69 final Set<ir.TreeNode> checkedNodes = new Set<ir.TreeNode>(); |
70 | 70 |
71 final Map<LibraryElement, Map<String, int>> mixinApplicationNamesByLibrary = | 71 final Map<LibraryElement, Map<String, int>> mixinApplicationNamesByLibrary = |
72 <LibraryElement, Map<String, int>>{}; | 72 <LibraryElement, Map<String, int>>{}; |
73 | 73 |
74 final Map<ir.Node, Element> nodeToElement = <ir.Node, Element>{}; | 74 final Map<ir.Node, Element> nodeToElement = <ir.Node, Element>{}; |
75 final Map<ir.Node, Node> nodeToAst = <ir.Node, Node>{}; | 75 final Map<ir.Node, Node> nodeToAst = <ir.Node, Node>{}; |
| 76 final Map<ir.Node, Node> nodeToAstOperator = <ir.Node, Node>{}; |
76 | 77 |
77 /// FIFO queue of work that needs to be completed before the returned AST | 78 /// FIFO queue of work that needs to be completed before the returned AST |
78 /// nodes are correct. | 79 /// nodes are correct. |
79 final Queue<WorkItem> workQueue = new Queue<WorkItem>(); | 80 final Queue<WorkItem> workQueue = new Queue<WorkItem>(); |
80 | 81 |
81 Kernel(this.compiler); | 82 Kernel(this.compiler); |
82 | 83 |
83 void addWork(Element element, WorkAction action) { | 84 void addWork(Element element, WorkAction action) { |
84 workQueue.addLast(new WorkItem(element, action)); | 85 workQueue.addLast(new WorkItem(element, action)); |
85 } | 86 } |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 } | 755 } |
755 | 756 |
756 class ConstructorTarget { | 757 class ConstructorTarget { |
757 final ConstructorElement element; | 758 final ConstructorElement element; |
758 final DartType type; | 759 final DartType type; |
759 | 760 |
760 ConstructorTarget(this.element, this.type); | 761 ConstructorTarget(this.element, this.type); |
761 | 762 |
762 String toString() => "ConstructorTarget($element, $type)"; | 763 String toString() => "ConstructorTarget($element, $type)"; |
763 } | 764 } |
OLD | NEW |