OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, 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_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 /** | 1167 /** |
1168 * Gets the type of a Dart language object. | 1168 * Gets the type of a Dart language object. |
1169 * | 1169 * |
1170 * \param instance Some Dart object. | 1170 * \param instance Some Dart object. |
1171 * | 1171 * |
1172 * \return If no error occurs, the type is returned. Otherwise an | 1172 * \return If no error occurs, the type is returned. Otherwise an |
1173 * error handle is returned. | 1173 * error handle is returned. |
1174 */ | 1174 */ |
1175 DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); | 1175 DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); |
1176 | 1176 |
1177 /** | |
1178 * TODO(asiva): Deprecate this method once all use cases have switched | |
1179 * to using Dart_InstanceGetType | |
1180 * Gets the class for some Dart language object. | |
1181 * | |
1182 * \param instance Some Dart object. | |
1183 * | |
1184 * \return If no error occurs, the class is returned. Otherwise an | |
1185 * error handle is returned. | |
1186 */ | |
1187 DART_EXPORT Dart_Handle Dart_InstanceGetClass(Dart_Handle instance); | |
1188 | |
1189 | 1177 |
1190 /* | 1178 /* |
1191 * ============================= | 1179 * ============================= |
1192 * Numbers, Integers and Doubles | 1180 * Numbers, Integers and Doubles |
1193 * ============================= | 1181 * ============================= |
1194 */ | 1182 */ |
1195 | 1183 |
1196 /** | 1184 /** |
1197 * Does this Integer fit into a 64-bit signed integer? | 1185 * Does this Integer fit into a 64-bit signed integer? |
1198 * | 1186 * |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 * | 2271 * |
2284 * \param object An object. | 2272 * \param object An object. |
2285 * \param peer A value to store in the peer field. | 2273 * \param peer A value to store in the peer field. |
2286 * | 2274 * |
2287 * \return Returns an error if 'object' is a subtype of Null, num, or | 2275 * \return Returns an error if 'object' is a subtype of Null, num, or |
2288 * bool. | 2276 * bool. |
2289 */ | 2277 */ |
2290 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2278 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2291 | 2279 |
2292 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2280 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |