| 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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 DART_EXPORT bool Dart_IsNumber(Dart_Handle object); | 1136 DART_EXPORT bool Dart_IsNumber(Dart_Handle object); |
| 1137 DART_EXPORT bool Dart_IsInteger(Dart_Handle object); | 1137 DART_EXPORT bool Dart_IsInteger(Dart_Handle object); |
| 1138 DART_EXPORT bool Dart_IsDouble(Dart_Handle object); | 1138 DART_EXPORT bool Dart_IsDouble(Dart_Handle object); |
| 1139 DART_EXPORT bool Dart_IsBoolean(Dart_Handle object); | 1139 DART_EXPORT bool Dart_IsBoolean(Dart_Handle object); |
| 1140 DART_EXPORT bool Dart_IsString(Dart_Handle object); | 1140 DART_EXPORT bool Dart_IsString(Dart_Handle object); |
| 1141 DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); /* (ISO-8859-1) */ | 1141 DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); /* (ISO-8859-1) */ |
| 1142 DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); | 1142 DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); |
| 1143 DART_EXPORT bool Dart_IsList(Dart_Handle object); | 1143 DART_EXPORT bool Dart_IsList(Dart_Handle object); |
| 1144 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); | 1144 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); |
| 1145 DART_EXPORT bool Dart_IsType(Dart_Handle handle); | 1145 DART_EXPORT bool Dart_IsType(Dart_Handle handle); |
| 1146 DART_EXPORT bool Dart_IsClass(Dart_Handle handle); | |
| 1147 DART_EXPORT bool Dart_IsFunction(Dart_Handle handle); | 1146 DART_EXPORT bool Dart_IsFunction(Dart_Handle handle); |
| 1148 DART_EXPORT bool Dart_IsVariable(Dart_Handle handle); | 1147 DART_EXPORT bool Dart_IsVariable(Dart_Handle handle); |
| 1149 DART_EXPORT bool Dart_IsTypeVariable(Dart_Handle handle); | 1148 DART_EXPORT bool Dart_IsTypeVariable(Dart_Handle handle); |
| 1150 DART_EXPORT bool Dart_IsClosure(Dart_Handle object); | 1149 DART_EXPORT bool Dart_IsClosure(Dart_Handle object); |
| 1151 | 1150 |
| 1152 | 1151 |
| 1153 /* | 1152 /* |
| 1154 * ========= | 1153 * ========= |
| 1155 * Instances | 1154 * Instances |
| 1156 * ========= | 1155 * ========= |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1167 /** | 1166 /** |
| 1168 * Gets the type of a Dart language object. | 1167 * Gets the type of a Dart language object. |
| 1169 * | 1168 * |
| 1170 * \param instance Some Dart object. | 1169 * \param instance Some Dart object. |
| 1171 * | 1170 * |
| 1172 * \return If no error occurs, the type is returned. Otherwise an | 1171 * \return If no error occurs, the type is returned. Otherwise an |
| 1173 * error handle is returned. | 1172 * error handle is returned. |
| 1174 */ | 1173 */ |
| 1175 DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); | 1174 DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); |
| 1176 | 1175 |
| 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 | 1176 |
| 1190 /* | 1177 /* |
| 1191 * ============================= | 1178 * ============================= |
| 1192 * Numbers, Integers and Doubles | 1179 * Numbers, Integers and Doubles |
| 1193 * ============================= | 1180 * ============================= |
| 1194 */ | 1181 */ |
| 1195 | 1182 |
| 1196 /** | 1183 /** |
| 1197 * Does this Integer fit into a 64-bit signed integer? | 1184 * Does this Integer fit into a 64-bit signed integer? |
| 1198 * | 1185 * |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2283 * | 2270 * |
| 2284 * \param object An object. | 2271 * \param object An object. |
| 2285 * \param peer A value to store in the peer field. | 2272 * \param peer A value to store in the peer field. |
| 2286 * | 2273 * |
| 2287 * \return Returns an error if 'object' is a subtype of Null, num, or | 2274 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2288 * bool. | 2275 * bool. |
| 2289 */ | 2276 */ |
| 2290 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2277 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2291 | 2278 |
| 2292 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2279 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |