Skip to content

Commit

Permalink
decoder: Add notes for references in TypeDeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jan 17, 2023
1 parent d9d95bf commit f39fc26
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions decoder/expr_type_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,13 @@ func (td TypeDeclaration) SemanticTokens(ctx context.Context) []lang.SemanticTok
}

func (td TypeDeclaration) ReferenceOrigins(ctx context.Context, allowSelfRefs bool) reference.Origins {
// TODO
return nil
return reference.Origins{
// type declarations don't allow references inside
}
}

func (td TypeDeclaration) ReferenceTargets(ctx context.Context, attrAddr *schema.AttributeAddrSchema) reference.Targets {
// TODO
return nil
return reference.Targets{
// TODO: create targets for object attributes
}
}

0 comments on commit f39fc26

Please sign in to comment.