@@ -43,15 +43,16 @@ class TemplateMarkTransformer {
4343 * @param {string } templateKind - either 'clause' or 'contract'
4444 * @param {object } [options] configuration options
4545 * @param {boolean } [options.verbose] verbose output
46- * @returns {object } the result of parsing
46+ * @param {string } [conceptFullyQualifiedName] - the fully qualified name of the template concept
47+ * @returns {object } the result of parsing
4748 */
48- tokensToMarkdownTemplate ( tokenStream , modelManager , templateKind , options ) {
49+ tokensToMarkdownTemplate ( tokenStream , modelManager , templateKind , options , conceptFullyQualifiedName ) {
4950 const template = tokensToUntypedTemplateMark ( tokenStream , templateKind ) ;
5051 if ( options && options . verbose ) {
5152 console . log ( '===== Untyped TemplateMark ' ) ;
5253 console . log ( JSON . stringify ( template , null , 2 ) ) ;
5354 }
54- const typedTemplate = templateMarkTyping ( template , modelManager , templateKind ) ;
55+ const typedTemplate = templateMarkTyping ( template , modelManager , templateKind , conceptFullyQualifiedName ) ;
5556 if ( options && options . verbose ) {
5657 console . log ( '===== TemplateMark ' ) ;
5758 console . log ( JSON . stringify ( typedTemplate , null , 2 ) ) ;
@@ -66,9 +67,10 @@ class TemplateMarkTransformer {
6667 * @param {string } templateKind - either 'clause' or 'contract'
6768 * @param {object } [options] configuration options
6869 * @param {boolean } [options.verbose] verbose output
70+ * @param {string } [conceptFullyQualifiedName] - the fully qualified name of the template concept
6971 * @returns {object } the result of parsing
7072 */
71- fromMarkdownTemplate ( templateInput , modelManager , templateKind , options ) {
73+ fromMarkdownTemplate ( templateInput , modelManager , templateKind , options , conceptFullyQualifiedName ) {
7274 if ( ! modelManager ) {
7375 throw new Error ( 'Cannot parse without template model' ) ;
7476 }
@@ -78,7 +80,7 @@ class TemplateMarkTransformer {
7880 console . log ( '===== MarkdownIt Tokens ' ) ;
7981 console . log ( JSON . stringify ( tokenStream , null , 2 ) ) ;
8082 }
81- return this . tokensToMarkdownTemplate ( tokenStream , modelManager , templateKind , options ) ;
83+ return this . tokensToMarkdownTemplate ( tokenStream , modelManager , templateKind , options , conceptFullyQualifiedName ) ;
8284 }
8385
8486 /**
0 commit comments