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

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

Issue 11030056: Implement new scope rules for type variables (issue 5230). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 const String& field_name, 487 const String& field_name,
488 intptr_t ident_pos, 488 intptr_t ident_pos,
489 bool consume_cascades); 489 bool consume_cascades);
490 490
491 LocalVariable* LookupLocalScope(const String& ident); 491 LocalVariable* LookupLocalScope(const String& ident);
492 bool IsFormalParameter(const String& ident, 492 bool IsFormalParameter(const String& ident,
493 Function* owner_function, 493 Function* owner_function,
494 LocalScope** owner_scope, 494 LocalScope** owner_scope,
495 intptr_t* local_index); 495 intptr_t* local_index);
496 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); 496 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
497 RawClass* TypeParametersScopeClass() const; 497 bool ParsingStaticMember() const;
498 const Type* ReceiverType(intptr_t type_pos) const; 498 const Type* ReceiverType(intptr_t type_pos) const;
499 bool IsInstantiatorRequired() const; 499 bool IsInstantiatorRequired() const;
500 bool ResolveIdentInLocalScope(intptr_t ident_pos, 500 bool ResolveIdentInLocalScope(intptr_t ident_pos,
501 const String &ident, 501 const String &ident,
502 AstNode** node); 502 AstNode** node);
503 static const bool kResolveLocally = true; 503 static const bool kResolveLocally = true;
504 static const bool kResolveIncludingImports = false; 504 static const bool kResolveIncludingImports = false;
505 505
506 // Resolve a primary identifier in the libary or prefix scope and 506 // Resolve a primary identifier in the libary or prefix scope and
507 // generate the corresponding AstNode. 507 // generate the corresponding AstNode.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 // Allocate temporary only once per function. 612 // Allocate temporary only once per function.
613 LocalVariable* expression_temp_; 613 LocalVariable* expression_temp_;
614 614
615 DISALLOW_COPY_AND_ASSIGN(Parser); 615 DISALLOW_COPY_AND_ASSIGN(Parser);
616 }; 616 };
617 617
618 } // namespace dart 618 } // namespace dart
619 619
620 #endif // VM_PARSER_H_ 620 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698