type labelType … const labelNone … const labelBreak … const labelContinue … const labelGoto … // wantLabelCompletion returns true if we want (only) label // completions at the position. func (c *completer) wantLabelCompletion() labelType { … } // takesLabel returns the corresponding labelType if n is a statement // that accepts a label, otherwise labelNone. func takesLabel(n ast.Node) labelType { … } // labels adds completion items for labels defined in the enclosing // function. func (c *completer) labels(lt labelType) { … }