@@ -62,7 +62,7 @@ class DirectiveSelector {
62
62
ElementBinderBuilder builder = _binderFactory.builder (_formatters, _directives);
63
63
List <_ElementSelector > partialSelection;
64
64
final classes = new Set <String >();
65
- final attrs = < String , String > {} ;
65
+ final attrs = new HashMap <String , String >() ;
66
66
67
67
dom.Element element = node;
68
68
String nodeName = element.tagName.toLowerCase ();
@@ -234,14 +234,14 @@ _addRefs(ElementBinderBuilder builder, List<_Directive> directives, dom.Node nod
234
234
class _ElementSelector {
235
235
final String _name;
236
236
237
- final _elementMap = < String , List <_Directive >> {} ;
238
- final _elementPartialMap = < String , _ElementSelector > {} ;
237
+ final _elementMap = new HashMap <String , List <_Directive >>() ;
238
+ final _elementPartialMap = new HashMap <String , _ElementSelector >() ;
239
239
240
- final _classMap = < String , List <_Directive >> {} ;
241
- final _classPartialMap = < String , _ElementSelector > {} ;
240
+ final _classMap = new HashMap <String , List <_Directive >>() ;
241
+ final _classPartialMap = new HashMap <String , _ElementSelector >() ;
242
242
243
- final _attrValueMap = < String , Map <String , List <_Directive >>> {} ;
244
- final _attrValuePartialMap = < String , Map <String , _ElementSelector >> {} ;
243
+ final _attrValueMap = new HashMap <String , Map <String , List <_Directive >>>() ;
244
+ final _attrValuePartialMap = new HashMap <String , Map <String , _ElementSelector >>() ;
245
245
246
246
_ElementSelector (this ._name);
247
247
@@ -268,12 +268,12 @@ class _ElementSelector {
268
268
}
269
269
} else if ((name = part.attrName) != null ) {
270
270
if (terminal) {
271
- elSelector._attrValueMap.putIfAbsent (name, () => < String , List <_Directive >> {} )
271
+ elSelector._attrValueMap.putIfAbsent (name, () => new HashMap <String , List <_Directive >>() )
272
272
.putIfAbsent (part.attrValue, () => [])
273
273
.add (directive);
274
274
} else {
275
275
elSelector = elSelector._attrValuePartialMap
276
- .putIfAbsent (name, () => < String , _ElementSelector > {} )
276
+ .putIfAbsent (name, () => new HashMap <String , _ElementSelector >() )
277
277
.putIfAbsent (part.attrValue, () => new _ElementSelector (name));
278
278
}
279
279
} else {
@@ -349,7 +349,7 @@ class _ElementSelector {
349
349
350
350
// A global cache for the _matchingKey RegExps. The size is bounded by
351
351
// the number of attribute directive selectors used in the application.
352
- static var _matchingKeyCache = < String , RegExp > {} ;
352
+ static var _matchingKeyCache = new HashMap <String , RegExp >() ;
353
353
354
354
String _matchingKey (Iterable <String > keys, String attrName) =>
355
355
keys.firstWhere ((key) =>
0 commit comments