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

Unified Diff: runtime/vm/parser.h

Issue 10831142: Associate the correct type to method receivers (instead of Dynamic type). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 10199)
+++ runtime/vm/parser.h (working copy)
@@ -365,8 +365,11 @@
LocalVariable* LookupPhaseParameter();
LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only);
- void CaptureReceiver();
+ LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope,
+ bool test_only);
+ void CaptureInstantiator();
AstNode* LoadReceiver(intptr_t token_pos);
+ AstNode* LoadTypeArgumentsParameter(intptr_t token_pos);
AstNode* LoadFieldIfUnresolved(AstNode* node);
AstNode* LoadClosure(PrimaryNode* primary);
AstNode* CallGetter(intptr_t token_pos, AstNode* object, const String& name);
@@ -464,7 +467,8 @@
LocalVariable* LookupLocalScope(const String& ident);
void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
- RawClass* TypeParametersScopeClass();
+ RawClass* TypeParametersScopeClass() const;
+ const Type* ReceiverType(intptr_t type_pos) const;
bool IsInstantiatorRequired() const;
bool IsDefinedInLexicalScope(const String& ident);
bool ResolveIdentInLocalScope(intptr_t ident_pos,

Powered by Google App Engine
This is Rietveld 408576698