-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 only last occurrence of a shared term gets linked with all its def…
…initions (#56) fix: All occurrences of an ambiguously defined term will be linked with all definitions, not just the last occurrence. Closes #55.
- Loading branch information
1 parent
62e762c
commit c891c87
Showing
32 changed files
with
603 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const Dictionary = require("./dictionary"); | ||
const Glossary = require("./glossary"); | ||
|
||
class Context { | ||
|
||
/** | ||
* @param {{ opts:{[key: string]: any} }} data | ||
*/ | ||
constructor(data) { | ||
this.opts = data.opts; | ||
this.terms = new Dictionary(); | ||
|
||
/** @type {VFile} */ | ||
this.vFiles = []; | ||
|
||
/** @type {{ [path: string]: Glossary}} */ | ||
this.glossaries = {}; | ||
|
||
/** | ||
* Resolved absolute base directory path. Use this for processing files | ||
* since `opts.baseDir` is only the unresolved configuration value. | ||
*/ | ||
this.baseDir = ""; | ||
|
||
/** | ||
* Resolved absolute output directory path. Use this for processing | ||
* files since `opts.baseDir` is only the unresolved configuration | ||
* value. | ||
*/ | ||
this.outDir = ""; | ||
} | ||
} | ||
|
||
module.exports = Context; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.