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

Side by Side Diff: runtime/include/dart_mirrors_api.h

Issue 47293002: Add Dart_LibraryId method unblocking landing 45613003. TBR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ready to review Created 7 years, 1 month 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/dart_api_impl_test.cc » ('j') | runtime/vm/mirrors_api_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_MIRRORS_API_H_ 7 #ifndef INCLUDE_DART_MIRRORS_API_H_
8 #define INCLUDE_DART_MIRRORS_API_H_ 8 #define INCLUDE_DART_MIRRORS_API_H_
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 */ 115 */
116 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function, 116 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function,
117 bool* is_setter); 117 bool* is_setter);
118 118
119 /** 119 /**
120 * Returns the name of a library as declared in the #library directive. 120 * Returns the name of a library as declared in the #library directive.
121 */ 121 */
122 DART_EXPORT Dart_Handle Dart_LibraryName(Dart_Handle library); 122 DART_EXPORT Dart_Handle Dart_LibraryName(Dart_Handle library);
123 123
124 /** 124 /**
125 * Returns in \library_id the library id of the given \library.
126 *
127 * \return A valid handle if no error occurs during the operation.
128 */
129 DART_EXPORT Dart_Handle Dart_LibraryId(Dart_Handle library,
130 intptr_t* library_id);
131
132 /**
125 * Returns a list of the names of all classes and interfaces declared 133 * Returns a list of the names of all classes and interfaces declared
126 * in a library. 134 * in a library.
127 * 135 *
128 * \return If no error occurs, a list of strings is returned. 136 * \return If no error occurs, a list of strings is returned.
129 * Otherwise an error handle is returned. 137 * Otherwise an error handle is returned.
130 */ 138 */
131 DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library); 139 DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library);
132 140
133 /** 141 /**
134 * Retrieves the function of a closure. 142 * Retrieves the function of a closure.
135 * 143 *
136 * \return A handle to the function of the closure, or an error handle if the 144 * \return A handle to the function of the closure, or an error handle if the
137 * argument is not a closure. 145 * argument is not a closure.
138 */ 146 */
139 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); 147 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure);
140 148
141 149
142 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */ 150 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl_test.cc » ('j') | runtime/vm/mirrors_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698