PosToLocation converts a token.Pos as a real code location, of token.Position.
(pos token.Pos)
| 93 | |
| 94 | // PosToLocation converts a token.Pos as a real code location, of token.Position. |
| 95 | func (p *EnhancedPass) PosToLocation(pos token.Pos) token.Position { |
| 96 | return p.HumanReadablePosition(p.Fset.Position(pos)) |
| 97 | } |
| 98 | |
| 99 | // ExprBarsNilness returns if the expression can never be nil for the simple reason that nil does |
| 100 | // not inhabit its type. |
no test coverage detected