@@ -35,9 +35,10 @@ class HtmlGeneratorInstance implements HtmlOptions {
35
35
String get faviconPath => _options.faviconPath;
36
36
bool get useCategories => _options.useCategories;
37
37
bool get prettyIndexJson => _options.prettyIndexJson;
38
+
38
39
// Protect against bugs in canonicalization by tracking what files we
39
40
// write.
40
- final Set <String > _writtenFiles = new Set ();
41
+ final Set <String > writtenFiles = new Set < String > ();
41
42
42
43
HtmlGeneratorInstance (this ._options, this ._templates, this .package, this .out,
43
44
this ._onFileCreated);
@@ -297,8 +298,6 @@ class HtmlGeneratorInstance implements HtmlOptions {
297
298
}
298
299
}
299
300
300
- Set <String > get writtenFiles => _writtenFiles;
301
-
302
301
void _build (String filename, TemplateRenderer template, TemplateData data) {
303
302
String fullName = path.join (out.path, filename);
304
303
@@ -307,9 +306,9 @@ class HtmlGeneratorInstance implements HtmlOptions {
307
306
308
307
// If you see this assert, we're probably being called to build non-canonical
309
308
// docs somehow. Check data.self.isCanonical and callers for bugs.
310
- assert (! _writtenFiles .contains (fullName));
309
+ assert (! writtenFiles .contains (fullName));
311
310
_writeFile (fullName, content);
312
- _writtenFiles .add (fullName);
311
+ writtenFiles .add (fullName);
313
312
if (data.self is ModelElement ) documentedElements.add (data.self);
314
313
}
315
314
0 commit comments