(filename string)
| 514 | } |
| 515 | |
| 516 | func (c *decl_cache) get(filename string) *decl_file_cache { |
| 517 | c.Lock() |
| 518 | defer c.Unlock() |
| 519 | |
| 520 | f, ok := c.cache[filename] |
| 521 | if !ok { |
| 522 | f = new_decl_file_cache(filename, c.context) |
| 523 | c.cache[filename] = f |
| 524 | } |
| 525 | return f |
| 526 | } |
| 527 | |
| 528 | func (c *decl_cache) get_and_update(filename string) *decl_file_cache { |
| 529 | f := c.get(filename) |
no test coverage detected