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

Side by Side Diff: runtime/lib/invocation_mirror_patch.dart

Issue 11669015: Turn compile time errors related to missing getters and setters into invocation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | runtime/vm/ast.h » ('j') | tests/language/invocation_mirror_test.dart » ('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 class _InvocationMirror implements InvocationMirror { 5 class _InvocationMirror implements InvocationMirror {
6 // Constants describing the invocation type. 6 // Constants describing the invocation type.
7 static final int _METHOD = 0; 7 static final int _METHOD = 0;
8 static final int _GETTER = 1; 8 static final int _GETTER = 1;
9 static final int _SETTER = 2; 9 static final int _SETTER = 2;
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 return new _InvocationMirror(functionName, argumentsDescriptor, arguments); 101 return new _InvocationMirror(functionName, argumentsDescriptor, arguments);
102 } 102 }
103 103
104 static _invoke(Object receiver, 104 static _invoke(Object receiver,
105 String functionName, 105 String functionName,
106 List argumentsDescriptor, 106 List argumentsDescriptor,
107 List arguments) 107 List arguments)
108 native "InvocationMirror_invoke"; 108 native "InvocationMirror_invoke";
109 109
110 invokeOn(Object receiver) { 110 invokeOn(Object receiver) {
111 _invoke(receiver, _functionName, _argumentsDescriptor, _arguments); 111 return _invoke(receiver, _functionName, _argumentsDescriptor, _arguments);
112 } 112 }
113 } 113 }
114 114
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast.h » ('j') | tests/language/invocation_mirror_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698