mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:51:30 +00:00
Fix Doc comment issues with Map and mirrors
Change-Id: I86c8d849c8137854b3a2dfa966cf86c9475f9f72 Reviewed-on: https://dart-review.googlesource.com/43201 Commit-Queue: Kevin Moore <kevmoo@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
ebdc8abaae
commit
922c0b5664
|
@ -138,8 +138,8 @@ abstract class MapMixin<K, V> implements Map<K, V> {
|
|||
return result;
|
||||
}
|
||||
|
||||
void addEntries(Iterable<MapEntry<K, V>> entries) {
|
||||
for (var entry in entries) {
|
||||
void addEntries(Iterable<MapEntry<K, V>> newEntries) {
|
||||
for (var entry in newEntries) {
|
||||
this[entry.key] = entry.value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -248,7 +248,7 @@ abstract class Map<K, V> {
|
|||
/**
|
||||
* Adds all key/value pairs of [newEntries] to this map.
|
||||
*
|
||||
* If a key of [other] is already in this map,
|
||||
* If a key of [newEntries] is already in this map,
|
||||
* the corresponding value is overwritten.
|
||||
*
|
||||
* The operation is equivalent to doing `this[entry.key] = entry.value`
|
||||
|
|
|
@ -173,7 +173,7 @@ external ClassMirror reflectClass(Type key);
|
|||
*
|
||||
* Optionally takes a list of [typeArguments] for generic classes. If the list
|
||||
* is provided, then the [key] must be a generic class type, and the number of
|
||||
* the provided type arguments must be equal to the number of type variables
|
||||
* the provided type arguments must be equal to the number of type variables
|
||||
* declared by the class.
|
||||
*
|
||||
* Note that since one cannot obtain a [Type] object from another isolate, this
|
||||
|
@ -452,7 +452,7 @@ abstract class ObjectMirror implements Mirror {
|
|||
InstanceMirror setField(Symbol fieldName, Object value);
|
||||
|
||||
/**
|
||||
* Performs [invocation] on [reflectee].
|
||||
* Performs [invocation] on the reflectee of this [ObjectMirror].
|
||||
*
|
||||
* Equivalent to
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue