OutermostExprAtPos implements the method of the same name for an *hcl.File that is backed by a *Body.
(pos hcl.Pos)
| 110 | // OutermostExprAtPos implements the method of the same name for an *hcl.File |
| 111 | // that is backed by a *Body. |
| 112 | func (b *Body) OutermostExprAtPos(pos hcl.Pos) hcl.Expression { |
| 113 | attr := b.attributeAtPos(pos) |
| 114 | if attr == nil { |
| 115 | return nil |
| 116 | } |
| 117 | if !attr.Expr.Range().ContainsPos(pos) { |
| 118 | return nil |
| 119 | } |
| 120 | return attr.Expr |
| 121 | } |
nothing calls this directly
no test coverage detected