(definitions: DefinitionsElement, tag: string)
| 885 | } |
| 886 | |
| 887 | public postProcess(definitions: DefinitionsElement, tag: string) { |
| 888 | const children = this.children; |
| 889 | for (let i = 0; i < children.length; i++) { |
| 890 | const child = children[i] as any; |
| 891 | if (child.name !== 'input' && child.name !== 'output') { |
| 892 | continue; |
| 893 | } |
| 894 | if (tag === 'binding') { |
| 895 | this[child.name] = child; |
| 896 | children.splice(i--, 1); |
| 897 | continue; |
| 898 | } |
| 899 | const messageName = splitQName(child.$message).name; |
| 900 | const message = definitions.messages[messageName]; |
| 901 | if (message) { |
| 902 | message.postProcess(definitions); |
| 903 | if (message.element) { |
| 904 | definitions.messages[message.element.$name] = message; |
| 905 | this[child.name] = message.element; |
| 906 | } else { |
| 907 | this[child.name] = message; |
| 908 | } |
| 909 | children.splice(i--, 1); |
| 910 | } |
| 911 | } |
| 912 | this.deleteFixedAttrs(); |
| 913 | } |
| 914 | |
| 915 | public description(definitions: DefinitionsElement) { |
| 916 | const inputDesc = this.input ? this.input.description(definitions) : null; |
nothing calls this directly
no test coverage detected