SetConfig updates the config used for path calculations
(cfg *config.Config)
| 53 | |
| 54 | // SetConfig updates the config used for path calculations |
| 55 | func (c *SourceMapCache) SetConfig(cfg *config.Config) { |
| 56 | c.mu.Lock() |
| 57 | defer c.mu.Unlock() |
| 58 | c.config = cfg |
| 59 | } |
| 60 | |
| 61 | // Get retrieves a source map from cache or loads it from disk. |
| 62 | // Path translation: goFilePath (.go) → dingoPath (.dingo) → .dmap/<relPath>.dmap |