NewBlock constructs a new, empty block with the given type name and labels.
(typeName string, labels []string)
| 27 | |
| 28 | // NewBlock constructs a new, empty block with the given type name and labels. |
| 29 | func NewBlock(typeName string, labels []string) *Block { |
| 30 | block := newBlock() |
| 31 | block.init(typeName, labels) |
| 32 | return block |
| 33 | } |
| 34 | |
| 35 | func (b *Block) init(typeName string, labels []string) { |
| 36 | nameTok := newIdentToken(typeName) |
no test coverage detected