extractCommentMemoryConfig extracts comment-memory configuration from tools section.
(toolsConfig *ToolsConfig)
| 16 | |
| 17 | // extractCommentMemoryConfig extracts comment-memory configuration from tools section. |
| 18 | func (c *Compiler) extractCommentMemoryConfig(toolsConfig *ToolsConfig) *CommentMemoryConfig { |
| 19 | if toolsConfig == nil || toolsConfig.CommentMemory == nil { |
| 20 | return nil |
| 21 | } |
| 22 | return c.parseCommentMemoryConfigValue(toolsConfig.CommentMemory.Raw) |
| 23 | } |
| 24 | |
| 25 | // parseCommentMemoryConfigValue handles comment-memory configuration values. |
| 26 | func (c *Compiler) parseCommentMemoryConfigValue(rawConfig any) *CommentMemoryConfig { |
no test coverage detected