OLD | NEW |
---|---|
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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 // TODO(ahe): Get rid of this file. Perhaps by having [FletchEnqueuer] extend | 5 // TODO(ahe): Get rid of this file. Perhaps by having [FletchEnqueuer] extend |
6 // [CodegenEnqueuer]. | 6 // [CodegenEnqueuer]. |
7 part of fletchc.fletch_enqueuer; | 7 part of fletchc.fletch_enqueuer; |
8 | 8 |
9 get notImplemented => throw "not implemented"; | 9 get notImplemented => throw "not implemented"; |
10 | 10 |
11 class EnqueuerMixin { | 11 class EnqueuerMixin implements CodegenEnqueuer { |
ahe
2015/11/17 16:44:09
Not sure about this.
sigurdm
2015/11/19 14:33:47
Ok, lets discuss it.
My idea was to get warnings i
| |
12 String get name => notImplemented; | 12 String get name => notImplemented; |
13 | 13 |
14 Compiler get compiler => notImplemented; | 14 Compiler get compiler => notImplemented; |
15 | 15 |
16 ItemCompilationContextCreator get itemCompilationContextCreator | 16 ItemCompilationContextCreator get itemCompilationContextCreator |
17 => notImplemented; | 17 => notImplemented; |
18 | 18 |
19 Map<String, Set<Element>> get instanceMembersByName => notImplemented; | 19 Map<String, Set<Element>> get instanceMembersByName => notImplemented; |
20 | 20 |
21 Map<String, Set<Element>> get instanceFunctionsByName => notImplemented; | 21 Map<String, Set<Element>> get instanceFunctionsByName => notImplemented; |
(...skipping 23 matching lines...) Expand all Loading... | |
45 bool get isResolutionQueue => notImplemented; | 45 bool get isResolutionQueue => notImplemented; |
46 | 46 |
47 QueueFilter get filter => notImplemented; | 47 QueueFilter get filter => notImplemented; |
48 | 48 |
49 Queue get queue => notImplemented; | 49 Queue get queue => notImplemented; |
50 | 50 |
51 get generatedCode => notImplemented; | 51 get generatedCode => notImplemented; |
52 | 52 |
53 Set<Element> get newlyEnqueuedElements => notImplemented; | 53 Set<Element> get newlyEnqueuedElements => notImplemented; |
54 | 54 |
55 Set<UniverseSelector> get newlySeenSelectors => notImplemented; | 55 Set<DynamicUse> get newlySeenSelectors => notImplemented; |
56 | 56 |
57 bool get enabledNoSuchMethod => notImplemented; | 57 bool get enabledNoSuchMethod => notImplemented; |
58 set enabledNoSuchMethod(bool value) => notImplemented; | 58 set enabledNoSuchMethod(bool value) => notImplemented; |
59 | 59 |
60 bool isProcessed(Element member) => notImplemented; | 60 bool isProcessed(Element member) => notImplemented; |
61 | 61 |
62 void addToWorkList(Element element) => notImplemented; | 62 void addToWorkList(Element element) => notImplemented; |
63 | 63 |
64 bool internalAddToWorkList(Element element) => notImplemented; | 64 bool internalAddToWorkList(Element element) => notImplemented; |
65 | 65 |
66 void applyImpact(Element element, WorldImpact worldImpact) => notImplemented; | 66 void applyImpact(Element element, WorldImpact worldImpact) => notImplemented; |
67 | 67 |
68 void registerInstantiatedType( | 68 void registerInstantiatedType( |
69 InterfaceType type, | 69 InterfaceType type, |
70 Registry registry, | |
71 {bool mirrorUsage: false}) => notImplemented; | 70 {bool mirrorUsage: false}) => notImplemented; |
72 | 71 |
73 bool checkNoEnqueuedInvokedInstanceMethods() => notImplemented; | 72 bool checkNoEnqueuedInvokedInstanceMethods() => notImplemented; |
74 | 73 |
75 void processInstantiatedClassMembers(ClassElement cls) => notImplemented; | 74 void processInstantiatedClassMembers(ClassElement cls) => notImplemented; |
76 | 75 |
77 void processInstantiatedClassMember( | 76 void processInstantiatedClassMember( |
78 ClassElement cls, | 77 ClassElement cls, |
79 Element member) => notImplemented; | 78 Element member) => notImplemented; |
80 | 79 |
81 void registerNoSuchMethod(Element noSuchMethod) => notImplemented; | 80 void registerNoSuchMethod(Element noSuchMethod) => notImplemented; |
82 | 81 |
83 void enableIsolateSupport() => notImplemented; | 82 void enableIsolateSupport() => notImplemented; |
84 | 83 |
85 void processInstantiatedClass(ClassElement cls) => notImplemented; | 84 void processInstantiatedClass(ClassElement cls) => notImplemented; |
86 | 85 |
87 void registerInvocation(UniverseSelector selector) => notImplemented; | 86 void registerInvocation(DynamicUse use) => notImplemented; |
88 | 87 |
89 void registerInvokedGetter(UniverseSelector selector) => notImplemented; | 88 void registerInvokedGetter(DynamicUse use) => notImplemented; |
90 | 89 |
91 void registerInvokedSetter(UniverseSelector selector) => notImplemented; | 90 void registerInvokedSetter(DynamicUse use) => notImplemented; |
92 | 91 |
93 bool shouldIncludeElementDueToMirrors( | 92 bool shouldIncludeElementDueToMirrors( |
94 Element element, | 93 Element element, |
95 {bool includedEnclosing}) => notImplemented; | 94 {bool includedEnclosing}) => notImplemented; |
96 | 95 |
97 void logEnqueueReflectiveAction(action, [msg = ""]) => notImplemented; | 96 void logEnqueueReflectiveAction(action, [msg = ""]) => notImplemented; |
98 | 97 |
99 void enqueueReflectiveConstructor( | 98 void enqueueReflectiveConstructor( |
100 ConstructorElement ctor, | 99 ConstructorElement ctor, |
101 bool enclosingWasIncluded) => notImplemented; | 100 bool enclosingWasIncluded) => notImplemented; |
(...skipping 22 matching lines...) Expand all Loading... | |
124 void processSet( | 123 void processSet( |
125 Map<String, Set<Element>> map, | 124 Map<String, Set<Element>> map, |
126 String memberName, | 125 String memberName, |
127 bool f(Element e)) => notImplemented; | 126 bool f(Element e)) => notImplemented; |
128 | 127 |
129 processInstanceMembers(String n, bool f(Element e)) => notImplemented; | 128 processInstanceMembers(String n, bool f(Element e)) => notImplemented; |
130 | 129 |
131 processInstanceFunctions(String n, bool f(Element e)) => notImplemented; | 130 processInstanceFunctions(String n, bool f(Element e)) => notImplemented; |
132 | 131 |
133 void handleUnseenSelector( | 132 void handleUnseenSelector( |
134 UniverseSelector universeSelector) => notImplemented; | 133 DynamicUse use) => notImplemented; |
135 | 134 |
136 void registerStaticUse(Element element) => notImplemented; | 135 void registerStaticUse(StaticUse element) => notImplemented; |
137 | 136 |
138 void registerGetOfStaticFunction(FunctionElement element) => notImplemented; | 137 void registerGetOfStaticFunction(FunctionElement element) => notImplemented; |
139 | 138 |
140 void registerDynamicInvocation(UniverseSelector selector) => notImplemented; | 139 void registerDynamicInvocation(DynamicUse use) => notImplemented; |
141 | 140 |
142 void registerSelectorUse(UniverseSelector universeSelector) => notImplemented; | 141 void registerSelectorUse(DynamicUse use) => notImplemented; |
143 | 142 |
144 void registerDynamicGetter(UniverseSelector selector) => notImplemented; | 143 void registerDynamicGetter(DynamicUse use) => notImplemented; |
145 | 144 |
146 void registerDynamicSetter(UniverseSelector selector) => notImplemented; | 145 void registerDynamicSetter(DynamicUse use) => notImplemented; |
147 | 146 |
148 void registerGetterForSuperMethod(Element element) => notImplemented; | 147 void registerGetterForSuperMethod(Element element) => notImplemented; |
149 | 148 |
150 void registerFieldGetter(Element element) => notImplemented; | 149 void registerFieldGetter(Element element) => notImplemented; |
151 | 150 |
152 void registerFieldSetter(Element element) => notImplemented; | 151 void registerFieldSetter(Element element) => notImplemented; |
153 | 152 |
154 void registerIsCheck(DartType type) => notImplemented; | 153 void registerIsCheck(DartType type) => notImplemented; |
155 | 154 |
156 void registerCallMethodWithFreeTypeVariables( | 155 void registerCallMethodWithFreeTypeVariables( |
157 Element element, | 156 Element element) => notImplemented; |
158 Registry registry) => notImplemented; | |
159 | 157 |
160 void registerClosurizedMember( | 158 void registerClosurizedMember( |
161 TypedElement element, | 159 TypedElement element) => notImplemented; |
162 Registry registry) => notImplemented; | |
163 | 160 |
164 void registerClosureIfFreeTypeVariables( | 161 void registerClosureIfFreeTypeVariables( |
165 TypedElement element, | 162 TypedElement element) => notImplemented; |
166 Registry registry) => notImplemented; | |
167 | 163 |
168 void registerClosure( | 164 void registerClosure( |
169 LocalFunctionElement element, | 165 LocalFunctionElement element) => notImplemented; |
170 Registry registry) => notImplemented; | |
171 | 166 |
172 void forEach(void f(WorkItem work)) => notImplemented; | 167 void forEach(void f(WorkItem work)) => notImplemented; |
173 | 168 |
174 bool onQueueEmpty(Iterable<ClassElement> recentClasses) => notImplemented; | 169 bool onQueueEmpty(Iterable<ClassElement> recentClasses) => notImplemented; |
175 | 170 |
176 void logSummary(log(message)) => notImplemented; | 171 void logSummary(log(message)) => notImplemented; |
177 | 172 |
178 void forgetElement(Element element) => notImplemented; | 173 void forgetElement(Element element) => notImplemented; |
174 | |
175 @override | |
ahe
2015/11/17 16:44:09
Please don't use @override, or use it consistently
sigurdm
2015/11/19 14:33:47
I tried to use it consistently in the code I added
| |
176 void handleUnseenSelectorInternal(DynamicUse dynamicUse) => notImplemented; | |
177 | |
178 @override | |
179 bool isClassProcessed(ClassElement cls) => notImplemented; | |
180 | |
181 @override | |
182 Iterable<ClassElement> get processedClasses => notImplemented; | |
183 | |
184 @override | |
185 void registerDynamicUse(DynamicUse dynamicUse) => notImplemented; | |
186 | |
187 @override | |
188 void registerStaticUseInternal(StaticUse staticUse) => notImplemented; | |
189 | |
190 @override | |
191 void registerTypeUse(TypeUse typeUse) => notImplemented; | |
192 | |
193 @override | |
194 DiagnosticReporter get reporter => notImplemented; | |
195 | |
196 @override | |
197 Resolution get resolution => notImplemented; | |
198 | |
199 @override | |
200 EnqueuerStrategy get strategy => notImplemented; | |
179 } | 201 } |
OLD | NEW |