Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ilib-lint: Add the ability to filter errors from xliff files #62

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3356fd0
Add ErrorFilterTransformer class
ehoogerbeets Jan 15, 2025
0705bcb
Add ErrorFilterTransformer class
ehoogerbeets Jan 17, 2025
2e9668a
Don't need the FileStats as a parameter to the transform method
ehoogerbeets Jan 18, 2025
e0fb3f7
Update the docs to add parameters
ehoogerbeets Jan 18, 2025
9ea3ac7
Remove spurious trailing whitespace
ehoogerbeets Jan 27, 2025
8c0470c
Add a serializer manager
ehoogerbeets Jan 27, 2025
c74fc8c
Add a serializer manager
ehoogerbeets Jan 28, 2025
d68673b
Clarified serializer docs a bit
ehoogerbeets Jan 28, 2025
5b48b7b
Call the serializer for the file type if it exists
ehoogerbeets Jan 28, 2025
dae1231
Try to get serializers working
ehoogerbeets Feb 3, 2025
212093f
Enforce consistent representation type in FileTypes
ehoogerbeets Feb 4, 2025
d92c6cd
Move test files into the test directory
ehoogerbeets Feb 4, 2025
6bd3fe6
More testing checkpoint commit
ehoogerbeets Feb 4, 2025
022d251
Remove debugger; stmt
ehoogerbeets Feb 4, 2025
d61a77f
Added the ability to make directories before writing
ehoogerbeets Feb 5, 2025
895b5b8
Add a changeset for ilib-lint-common
ehoogerbeets Feb 5, 2025
b03a0ff
Serializers now work properly. Now on to transformers.
ehoogerbeets Feb 6, 2025
a74a47b
Added a results parameter to the Transformer.transform method
ehoogerbeets Feb 6, 2025
6050862
Added transformers and transformers manager
ehoogerbeets Feb 6, 2025
4eb017c
Got transformers working
ehoogerbeets Feb 10, 2025
5da0b6a
Forgot to commit the test transformer
ehoogerbeets Feb 13, 2025
ab57b82
Regnerated the docs
ehoogerbeets Feb 27, 2025
a1c7c16
Addressed review comments
ehoogerbeets Feb 27, 2025
355d590
Regenerate ilib-lint docs
ehoogerbeets Feb 27, 2025
67e95db
Address more review comments
ehoogerbeets Feb 27, 2025
3ee822f
Test file cleanup
ehoogerbeets Feb 27, 2025
e92eca6
Address review comments
ehoogerbeets Mar 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/strange-tables-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"ilib-lint": minor
---

- Added the ability to write files out again if they
are modified and a serializer is available
- added the --write flag to cause the write to happen
- added the --overwrite flag to cause it to overwrite
the original file (otherwise, it writes to another
parallel file)
- modified the ouput of --list to output the names
of known serializers that are built-in or loaded from
plugins
- file type definitions can now include a property that
names the serializer to use to write out files of
that type
- file type definitions can now only use plugins that
operate on the same type of intermediate representation
types. That is, you cannot specify a parser that produces
a "line" representation type, and then a serializer
that accepts a "resource" representation type. They all
have to be "line" or "resource".
12 changes: 12 additions & 0 deletions .changeset/witty-icons-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"ilib-lint-common": minor
---

- Updated Serializer API and clarified docs
- Added the ability for SourceFile.write() to make the
directories along the path where it wants to write
the file if they don't exist already.
- Added unit tests for SourceFile.write()
- Updated Transformer API to add a results parameter
to the transform() function so that the transformer
can do things based on these results
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/FileStats.html
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/FileStats.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ <h1 class="page-title">FileStats.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Fix.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ <h5 class="h5-types">Type:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Fix.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h1 class="page-title">Fix.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Fixer.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Fixer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h1 class="page-title">Fixer.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Formatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Formatter.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h1 class="page-title">Formatter.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h1 class="page-title">IntermediateRepresentation.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/NotImplementedError.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ <h4 class="name" id="NotImplementedError"><span class="type-signature"></span>ne
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/NotImplementedError.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h1 class="page-title">NotImplementedError.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Parser.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1 class="page-title">Parser.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/PipelineElement.html
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ <h4 class="name" id="init"><span class="type-signature"></span>init<span class="
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/PipelineElement.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h1 class="page-title">PipelineElement.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Plugin.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1 class="page-title">Plugin.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Result.html
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ <h5 class="h5-types">Type:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Result.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h1 class="page-title">Result.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/ilib-lint-common/docs/Rule.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h1 class="page-title">Rule.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
26 changes: 16 additions & 10 deletions packages/ilib-lint-common/docs/Serializer.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ <h6>Properties</h6>



<td class="description last"><p>a callback function provided by</p></td>
<td class="description last"><p>a callback function provided by the linter
to retrieve the log4js logger</p></td>
</tr>


Expand Down Expand Up @@ -279,7 +280,7 @@ <h6>Properties</h6>


<td class="description last"><p>additional settings that can be passed to the serializer
the linter to retrieve the log4js logger</p></td>
implementation</p></td>
</tr>


Expand Down Expand Up @@ -337,7 +338,7 @@ <h3 class="subsection-title">Methods</h3>



<h4 class="name" id="serialize"><span class="type-signature type-signature-abstract">(abstract) </span>serialize<span class="signature">(representation)</span><span class="type-signature"> &rarr; {<a href="SourceFile.html">SourceFile</a>}</span></h4>
<h4 class="name" id="serialize"><span class="type-signature type-signature-abstract">(abstract) </span>serialize<span class="signature">(representations)</span><span class="type-signature"> &rarr; {<a href="SourceFile.html">SourceFile</a>}</span></h4>



Expand All @@ -353,13 +354,18 @@ <h4 class="name" id="serialize"><span class="type-signature type-signature-abstr
that can be written back to disk. For example, an xliff serializer can take
an intermediate representation that is an array of Resource instances and
convert it into xliff file format and set that as the content of the SourceFile
it produces.</p></li></ul></dd>
it produces.</p>
<p>The type of the intermediate representation that this serializer can handle
is specified in the <code>type</code> property of this instance passed to the constructor.
The linter will only allow this serializer to be used for intermediate
representations of that type so they must match. The source file that is
returned must have the same type as the intermediate representation.</p></li></ul></dd>



<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Serializer.js.html">Serializer.js</a>, <a href="Serializer.js.html#line67">line 67</a>
<a href="Serializer.js.html">Serializer.js</a>, <a href="Serializer.js.html#line74">line 74</a>
</li></ul></dd>


Expand Down Expand Up @@ -431,13 +437,13 @@ <h5 class="h5-parameters">Parameters:</h5>

<tr>

<td class="name"><code>representation</code></td>
<td class="name"><code>representations</code></td>


<td class="type">


<span class="param-type"><a href="IntermediateRepresentation.html">IntermediateRepresentation</a></span>
<span class="param-type">Array.&lt;<a href="IntermediateRepresentation.html">IntermediateRepresentation</a>></span>



Expand All @@ -448,8 +454,8 @@ <h5 class="h5-parameters">Parameters:</h5>



<td class="description last"><p>the representation
to serialize</p></td>
<td class="description last"><p>the array of intermediate
representations to serialize</p></td>
</tr>


Expand Down Expand Up @@ -518,7 +524,7 @@ <h5 class="h5-returns">Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Dec 19 2024 16:53:40 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Feb 26 2025 17:04:17 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
Loading