Skip to content

Commit

Permalink
decoder: Implement completion for TypeDeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Mar 9, 2023
1 parent b8ecaa4 commit 639cb6b
Show file tree
Hide file tree
Showing 3 changed files with 1,416 additions and 5 deletions.
9 changes: 4 additions & 5 deletions decoder/expr_type_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ type TypeDeclaration struct {
pathCtx *PathContext
}

func (td TypeDeclaration) CompletionAtPos(ctx context.Context, pos hcl.Pos) []lang.Candidate {
// TODO
return nil
}

func (td TypeDeclaration) HoverAtPos(ctx context.Context, pos hcl.Pos) *lang.HoverData {
// TODO
return nil
Expand All @@ -28,3 +23,7 @@ func (td TypeDeclaration) SemanticTokens(ctx context.Context) []lang.SemanticTok
// TODO
return nil
}

func isTypeNameWithElementOnly(name string) bool {
return name == "list" || name == "set" || name == "map"
}
Loading

0 comments on commit 639cb6b

Please sign in to comment.