From a8a48092123d5515d52bce0fef527f7423a0d5f3 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Mon, 16 Jan 2023 17:26:57 +0000 Subject: [PATCH] decoder: Add notes for references in TypeDeclaration --- decoder/expr_type_declaration.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/decoder/expr_type_declaration.go b/decoder/expr_type_declaration.go index 31e3d81c..18f42f1d 100644 --- a/decoder/expr_type_declaration.go +++ b/decoder/expr_type_declaration.go @@ -348,11 +348,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 + } }