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

Side by Side Diff: runtime/vm/class_finalizer.h

Issue 8247014: Changes to handle unresolved qualified identifiers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/class_finalizer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_CLASS_FINALIZER_H_ 5 #ifndef VM_CLASS_FINALIZER_H_
6 #define VM_CLASS_FINALIZER_H_ 6 #define VM_CLASS_FINALIZER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 class Class; 13 class Class;
14 class Function; 14 class Function;
15 class RawString;
15 class RawType; 16 class RawType;
17 class Script;
16 class Type; 18 class Type;
17 class TypeArguments; 19 class TypeArguments;
18 class RawString;
19 20
20 // Traverses all pending, unfinalized classes, validates and marks them as 21 // Traverses all pending, unfinalized classes, validates and marks them as
21 // finalized. 22 // finalized.
22 class ClassFinalizer : public AllStatic { 23 class ClassFinalizer : public AllStatic {
23 public: 24 public:
24 // Add 'interface' to 'interface_list' if it is not already in the list and 25 // Add 'interface' to 'interface_list' if it is not already in the list and
25 // return true. Also return true if 'interface' is not added, because it is 26 // return true. Also return true if 'interface' is not added, because it is
26 // not unique, i.e. it is already in the list. 27 // not unique, i.e. it is already in the list.
27 // Return false if 'interface' conflicts with an interface already in the list 28 // Return false if 'interface' conflicts with an interface already in the list
28 // with the same class, but different type arguments. 29 // with the same class, but different type arguments.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 static void FinalizeTypeArguments(const Class& cls, 64 static void FinalizeTypeArguments(const Class& cls,
64 const TypeArguments& arguments); 65 const TypeArguments& arguments);
65 static RawType* ResolveType(const Class& cls, const Type& type); 66 static RawType* ResolveType(const Class& cls, const Type& type);
66 static void ResolveAndFinalizeSignature(const Class& cls, 67 static void ResolveAndFinalizeSignature(const Class& cls,
67 const Function& function); 68 const Function& function);
68 static void ResolveAndFinalizeMemberTypes(const Class& cls); 69 static void ResolveAndFinalizeMemberTypes(const Class& cls);
69 static void PrintClassInformation(const Class& cls); 70 static void PrintClassInformation(const Class& cls);
70 static void VerifyClassImplements(const Class& cls); 71 static void VerifyClassImplements(const Class& cls);
71 static void CollectInterfaces(const Class& cls, 72 static void CollectInterfaces(const Class& cls,
72 GrowableArray<const Class*>* interfaces); 73 GrowableArray<const Class*>* interfaces);
74 static void ReportError(const Script& script,
75 intptr_t token_index,
76 const char* format, ...);
73 static void ReportError(const char* format, ...); 77 static void ReportError(const char* format, ...);
74 }; 78 };
75 79
76 } // namespace dart 80 } // namespace dart
77 81
78 #endif // VM_CLASS_FINALIZER_H_ 82 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/class_finalizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698