Skip to content

Commit

Permalink
unpublish decoder.BlockSchemaToCandidate (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Oct 14, 2021
1 parent 0bfbdcc commit 04776b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decoder/block_candidates.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// blockSchemaToCandidate generates a lang.Candidate used for auto-complete inside an editor from a BlockSchema.
// If `prefillRequiredFields` is `false`, it returns a snippet that does not expect any prefilled fields.
// If `prefillRequiredFields` is `true`, it returns a snippet that is compatiable with a list of prefilled fields from `generateRequiredFieldsSnippet`
func (d *Decoder) BlockSchemaToCandidate(blockType string, block *schema.BlockSchema, rng hcl.Range) lang.Candidate {
func (d *Decoder) blockSchemaToCandidate(blockType string, block *schema.BlockSchema, rng hcl.Range) lang.Candidate {
triggerSuggest := false
if len(block.Labels) > 0 {
// We make some naive assumptions here for simplicity
Expand Down
2 changes: 1 addition & 1 deletion decoder/body_candidates.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (d *Decoder) bodySchemaCandidates(body *hclsyntax.Body, schema *schema.Body
return candidates
}

candidates.List = append(candidates.List, d.BlockSchemaToCandidate(bType, block, editRng))
candidates.List = append(candidates.List, d.blockSchemaToCandidate(bType, block, editRng))
count++
}

Expand Down

0 comments on commit 04776b6

Please sign in to comment.