Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index 2f844f349322d27ba5d6bbfc82073c178a5494f4..3b6b228eb972c4ce9699f7ebd0eda8ee59ab6d41 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -1325,6 +1325,7 @@ DART_EXPORT bool Dart_IsString(Dart_Handle object); |
DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); /* (ISO-8859-1) */ |
DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); |
DART_EXPORT bool Dart_IsList(Dart_Handle object); |
+DART_EXPORT bool Dart_IsMap(Dart_Handle object); |
DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); |
DART_EXPORT bool Dart_IsType(Dart_Handle handle); |
DART_EXPORT bool Dart_IsFunction(Dart_Handle handle); |
@@ -1776,7 +1777,7 @@ DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t* length); |
* \param list A List. |
* \param index A valid index into the List. |
* |
- * \return The Object in the List at the specified index if no errors |
+ * \return The Object in the List at the specified index if no error |
* occurs. Otherwise returns an error handle. |
*/ |
DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list, |
@@ -1817,6 +1818,50 @@ DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list, |
/* |
+ * ==== |
+ * Maps |
+ * ==== |
+ */ |
+ |
+/** |
+ * Gets the Object at some key of a Map. |
+ * |
+ * May generate an unhandled exception error. |
+ * |
+ * \param map A Map. |
+ * \param key An Object. |
+ * |
+ * \return The value in the map at the specified key, null if the map does not |
+ * contain the key, or an error handle. |
+ */ |
+DART_EXPORT Dart_Handle Dart_MapGetAt(Dart_Handle map, Dart_Handle key); |
+ |
+/** |
+ * Returns whether the Map contains a given key. |
+ * |
+ * May generate an unhandled exception error. |
+ * |
+ * \param map A Map. |
+ * |
+ * \return A handle on a boolean indicating whether map contains the key. |
+ * Otherwise returns an error handle. |
+ */ |
+DART_EXPORT Dart_Handle Dart_MapContainsKey(Dart_Handle map, Dart_Handle key); |
+ |
+/** |
+ * Gets the list of keys of a Map. |
+ * |
+ * May generate an unhandled exception error. |
+ * |
+ * \param map A Map. |
+ * |
+ * \return The list of key Objects if no error occurs. Otherwise returns an |
+ * error handle. |
+ */ |
+DART_EXPORT Dart_Handle Dart_MapKeys(Dart_Handle map); |
+ |
+ |
+/* |
* ========== |
* Typed Data |
* ========== |