Skip to content

Commit 15201eb

Browse files
author
Dart CI
committed
Version 2.10.0-87.0.dev
Merge commit 'eb8dfee10740a8d93c2f0fae8126244473fc9dbd' into 'dev'
2 parents b29f228 + eb8dfee commit 15201eb

File tree

5 files changed

+43
-90
lines changed

5 files changed

+43
-90
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
import 'dart:io';
6+
7+
import 'spell_checking_utils.dart' as spell;
8+
9+
main() {
10+
{
11+
spell.ensureDictionariesLoaded([spell.Dictionaries.common]);
12+
Set<String> commonWords =
13+
spell.loadedDictionaries[spell.Dictionaries.common];
14+
for (spell.Dictionaries dictionary in spell.Dictionaries.values) {
15+
if (dictionary == spell.Dictionaries.common) continue;
16+
Uri uri = spell.dictionaryToUri(dictionary);
17+
List<String> keep = new List<String>();
18+
for (String line in new File.fromUri(uri).readAsLinesSync()) {
19+
if (!commonWords.contains(line)) {
20+
keep.add(line);
21+
}
22+
}
23+
keep.add("");
24+
new File.fromUri(uri).writeAsStringSync(keep.join("\n"));
25+
}
26+
}
27+
28+
{
29+
spell.ensureDictionariesLoaded([spell.Dictionaries.cfeCode]);
30+
Set<String> codeWords =
31+
spell.loadedDictionaries[spell.Dictionaries.cfeCode];
32+
Uri uri = spell.dictionaryToUri(spell.Dictionaries.cfeTests);
33+
List<String> keep = new List<String>();
34+
for (String line in new File.fromUri(uri).readAsLinesSync()) {
35+
if (!codeWords.contains(line)) {
36+
keep.add(line);
37+
}
38+
}
39+
keep.add("");
40+
new File.fromUri(uri).writeAsStringSync(keep.join("\n"));
41+
}
42+
}

pkg/front_end/test/spell_checking_list_code.txt

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ acov
2222
across
2323
affecting
2424
afterwards
25-
agnostic
2625
agree
2726
ahe
2827
ai
@@ -35,7 +34,6 @@ alive
3534
allocate
3635
altered
3736
analogous
38-
analyzer
3937
annotate
4038
ansi
4139
answering
@@ -49,7 +47,6 @@ arg
4947
args
5048
argument1
5149
arise
52-
arises
5350
arising
5451
arity
5552
artifact
@@ -63,7 +60,6 @@ assigns
6360
association
6461
ast
6562
asy
66-
async
6763
atm
6864
atom
6965
atoms
@@ -122,7 +118,6 @@ body's
122118
bof
123119
bom
124120
bones
125-
boolean
126121
bother
127122
boundness
128123
boxed
@@ -199,7 +194,6 @@ co
199194
codebase
200195
codec
201196
codes
202-
collection
203197
collision
204198
com
205199
combinations
@@ -208,7 +202,6 @@ combine2
208202
combiner
209203
compared
210204
compares
211-
compiler
212205
completes
213206
complicating
214207
component's
@@ -233,7 +226,6 @@ containers
233226
continuations
234227
contra
235228
convention
236-
convert
237229
coordinated
238230
coordinating
239231
core
@@ -305,7 +297,6 @@ destinations
305297
destroy
306298
deterministic
307299
dev
308-
diagnostic
309300
diff
310301
diffs
311302
digest
@@ -373,11 +364,9 @@ es
373364
established
374365
estimate
375366
eval
376-
excludes
377367
exhausted
378368
existentially
379369
exp
380-
expect
381370
expense
382371
exportable
383372
exportee
@@ -496,11 +485,9 @@ hillerstrom
496485
histogram
497486
hit
498487
hoc
499-
hoisted
500488
hopefully
501489
href
502490
html
503-
http
504491
https
505492
human
506493
i
@@ -579,7 +566,6 @@ juxtaposition
579566
juxtapositions
580567
k
581568
kallentu
582-
kernel
583569
kernel's
584570
kernel2kernel
585571
klass
@@ -616,7 +602,6 @@ ll
616602
llub
617603
lm
618604
locationd
619-
logging
620605
logically
621606
lots
622607
lp
@@ -640,7 +625,6 @@ manipulation
640625
markdown
641626
masking
642627
master
643-
matcher
644628
mb
645629
mc
646630
md
@@ -694,7 +678,6 @@ msdn
694678
msg
695679
murmur
696680
mus
697-
mustache
698681
n
699682
na
700683
nameless
@@ -727,8 +710,6 @@ nsm
727710
nt
728711
nth
729712
nullabilities
730-
nullability
731-
nullable
732713
nullable1
733714
nullable2
734715
nullable3
@@ -841,7 +822,6 @@ proposed
841822
proto
842823
protobuf
843824
ps
844-
pub
845825
pulled
846826
pure
847827
puts
@@ -971,7 +951,6 @@ scoping
971951
sdk's
972952
seconds
973953
sections
974-
selector
975954
selectors
976955
semantically
977956
semver
@@ -1098,8 +1077,6 @@ taking
10981077
talks
10991078
tb
11001079
team
1101-
tear
1102-
tearing
11031080
tearoff
11041081
tearoffable
11051082
tearoffs
@@ -1112,10 +1089,8 @@ temps
11121089
term
11131090
termcap
11141091
terminator
1115-
test
11161092
tester
11171093
testers
1118-
testing
11191094
tex
11201095
textualize
11211096
textualized
@@ -1176,14 +1151,11 @@ uint
11761151
uint16
11771152
uint32
11781153
uint8
1179-
ultimately
11801154
umbrella
11811155
un
11821156
unaffected
1183-
unalias
11841157
unaligned
11851158
unaltered
1186-
unassigned
11871159
unbound
11881160
uncategorized
11891161
uncomment
@@ -1230,7 +1202,6 @@ ur
12301202
uri's
12311203
url
12321204
urls
1233-
usage
12341205
usr
12351206
usual
12361207
usually
@@ -1240,7 +1211,6 @@ util
12401211
utils
12411212
v
12421213
variable's
1243-
variance
12441214
variances
12451215
variant
12461216
variants
@@ -1255,13 +1225,11 @@ violated
12551225
visit*
12561226
visitors
12571227
visits
1258-
vm
12591228
vm's
12601229
vn
12611230
vs
12621231
vtab
12631232
w
1264-
wanted
12651233
waste
12661234
watch
12671235
watcher

pkg/front_end/test/spell_checking_list_messages.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dname
2727
e.g
2828
enum's
2929
f
30-
field's
3130
flutter_runner
3231
futureor
3332
h

0 commit comments

Comments
 (0)