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

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

Issue 8761011: Renaming type classes as discussed: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
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_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 // Support for parsing libraries. 196 // Support for parsing libraries.
197 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, 197 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag,
198 intptr_t token_pos, 198 intptr_t token_pos,
199 const String& url); 199 const String& url);
200 void ParseLibraryDefinition(); 200 void ParseLibraryDefinition();
201 void ParseLibraryName(); 201 void ParseLibraryName();
202 void ParseLibraryImport(); 202 void ParseLibraryImport();
203 void ParseLibraryInclude(); 203 void ParseLibraryInclude();
204 204
205 void TryResolveTypeFromClass(intptr_t type_pos, const Class& cls, Type* type); 205 void TryResolveTypeFromClass(intptr_t type_pos,
206 const Class& cls,
207 AbstractType* type);
206 enum TypeResolution { 208 enum TypeResolution {
207 kDoNotResolve, // Type resolution is postponed. 209 kDoNotResolve, // Type resolution is postponed.
208 kCanResolve, // Type resolution is optional. 210 kCanResolve, // Type resolution is optional.
209 kMustResolve // Type resolution is required. 211 kMustResolve // Type resolution is required.
210 }; 212 };
211 RawType* ParseType(TypeResolution type_resolution); 213 RawAbstractType* ParseType(TypeResolution type_resolution);
212 void ParseTypeParameters(const Class& cls); 214 void ParseTypeParameters(const Class& cls);
213 RawTypeArguments* ParseTypeArguments(TypeResolution type_resolution); 215 RawTypeArguments* ParseTypeArguments(TypeResolution type_resolution);
214 RawType* ParseInterface(); 216 RawAbstractType* ParseInterface();
regis 2011/12/01 04:24:07 This should always be a Type. Later cl.
srdjan 2011/12/01 17:48:42 This method does not exist, deleted. Maybe have Pa
regis 2011/12/01 17:53:38 Yes.
215 void ParseQualIdent(QualIdent* qual_ident); 217 void ParseQualIdent(QualIdent* qual_ident);
216 void ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method); 218 void ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method);
217 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field); 219 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field);
218 void ParseClassMemberDefinition(ClassDesc* members); 220 void ParseClassMemberDefinition(ClassDesc* members);
219 void ParseFormalParameter(bool allow_explicit_default_value, 221 void ParseFormalParameter(bool allow_explicit_default_value,
220 ParamList* params); 222 ParamList* params);
221 void ParseFormalParameters(bool allow_explicit_default_values, 223 void ParseFormalParameters(bool allow_explicit_default_values,
222 ParamList* params); 224 ParamList* params);
223 void ParseFormalParameterList(bool allow_explicit_default_values, 225 void ParseFormalParameterList(bool allow_explicit_default_values,
224 ParamList* params); 226 ParamList* params);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // inlined finally code if needed. 304 // inlined finally code if needed.
303 void AddNodeForFinallyInlining(AstNode* node); 305 void AddNodeForFinallyInlining(AstNode* node);
304 // Add the inlined finally block to the specified node. 306 // Add the inlined finally block to the specified node.
305 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node); 307 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node);
306 AstNode* ParseTryStatement(String* label_name); 308 AstNode* ParseTryStatement(String* label_name);
307 309
308 enum TypeSpecification { 310 enum TypeSpecification {
309 kIsOptional, // Type specification is optional. 311 kIsOptional, // Type specification is optional.
310 kIsMandatory // Type specification is mandatory. 312 kIsMandatory // Type specification is mandatory.
311 }; 313 };
312 RawType* ParseFinalVarOrType(TypeSpecification type_specification, 314 RawAbstractType* ParseFinalVarOrType(TypeSpecification type_specification,
313 TypeResolution type_resolution); 315 TypeResolution type_resolution);
314 const Type& ParseConstVarOrType(TypeSpecification type_specification); 316 const AbstractType& ParseConstVarOrType(TypeSpecification type_specification);
315 AstNode* ParseVariableDeclaration(const Type& type, bool is_const); 317 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const);
316 AstNode* ParseVariableDeclarationList(); 318 AstNode* ParseVariableDeclarationList();
317 AstNode* ParseFunctionStatement(bool is_literal); 319 AstNode* ParseFunctionStatement(bool is_literal);
318 AstNode* ParseStatement(); 320 AstNode* ParseStatement();
319 SequenceNode* ParseNestedStatement(bool parsing_loop_body, 321 SequenceNode* ParseNestedStatement(bool parsing_loop_body,
320 SourceLabel* label); 322 SourceLabel* label);
321 void ParseStatementSequence(); 323 void ParseStatementSequence();
322 bool IsFunctionTypeAliasName(); 324 bool IsFunctionTypeAliasName();
323 bool IsTypeParameter(); 325 bool IsTypeParameter();
324 bool IsOptionalType(); 326 bool IsOptionalType();
325 bool IsReturnType(); 327 bool IsReturnType();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // code at all points in the try block where an exit from the block is 446 // code at all points in the try block where an exit from the block is
445 // done using 'return', 'break' or 'continue' statements. 447 // done using 'return', 'break' or 'continue' statements.
446 TryBlocks* try_blocks_list_; 448 TryBlocks* try_blocks_list_;
447 449
448 DISALLOW_COPY_AND_ASSIGN(Parser); 450 DISALLOW_COPY_AND_ASSIGN(Parser);
449 }; 451 };
450 452
451 } // namespace dart 453 } // namespace dart
452 454
453 #endif // VM_PARSER_H_ 455 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698