OLD | NEW |
1 #library("util"); | 1 #library("util"); |
2 | 2 |
3 #import("../../../frog/lib/node/node.dart"); | |
4 #import("dart:json"); | 3 #import("dart:json"); |
5 | 4 |
6 Map<String, Map> _allProps; | 5 Map<String, Map> _allProps; |
7 | 6 |
8 Map<String, Map> get allProps() { | 7 Map<String, Map> get allProps() { |
9 if (_allProps == null) { | 8 if (_allProps == null) { |
10 // Database of expected property names for each type in WebKit. | 9 // Database of expected property names for each type in WebKit. |
11 _allProps = JSON.parse(fs.readFileSync('data/dartIdl.json', 'utf8')); | 10 _allProps = JSON.parse(fs.readFileSync('data/dartIdl.json', 'utf8')); |
12 } | 11 } |
13 return _allProps; | 12 return _allProps; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 if (entry != null) { | 75 if (entry != null) { |
77 num score = scoreEntry(entry, type); | 76 num score = scoreEntry(entry, type); |
78 if (score > bestScore) { | 77 if (score > bestScore) { |
79 bestScore = score; | 78 bestScore = score; |
80 bestEntry = entry; | 79 bestEntry = entry; |
81 } | 80 } |
82 } | 81 } |
83 } | 82 } |
84 return bestEntry; | 83 return bestEntry; |
85 } | 84 } |
OLD | NEW |