Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Aug 7, 2024
1 parent 1e49dba commit ee85d6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions decoder/expr_object_ref_origins.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ func (obj Object) ReferenceOrigins(ctx context.Context, allowSelfRefs bool) refe
if elemExpr, ok := expr.(ReferenceOriginsExpression); ok {
origins = append(origins, elemExpr.ReferenceOrigins(ctx, allowSelfRefs)...)
}

if aSchema.OriginForTarget != nil {
origins = append(origins, reference.PathOrigin{
TargetAddr: aSchema.OriginForTarget.Address,

Check failure on line 59 in decoder/expr_object_ref_origins.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

cannot use aSchema.OriginForTarget.Address (variable of type schema.Address) as lang.Address value in struct literal

Check failure on line 59 in decoder/expr_object_ref_origins.go

View workflow job for this annotation

GitHub Actions / test (macos-latest)

cannot use aSchema.OriginForTarget.Address (variable of type schema.Address) as lang.Address value in struct literal
TargetPath: aSchema.OriginForTarget.Path,
Constraints: aSchema.OriginForTarget.Constraints,

Check failure on line 61 in decoder/expr_object_ref_origins.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

cannot use aSchema.OriginForTarget.Constraints (variable of type schema.Constraints) as reference.OriginConstraints value in struct literal

Check failure on line 61 in decoder/expr_object_ref_origins.go

View workflow job for this annotation

GitHub Actions / test (macos-latest)

cannot use aSchema.OriginForTarget.Constraints (variable of type schema.Constraints) as reference.OriginConstraints value in struct literal
})
}
}
}

Expand Down

0 comments on commit ee85d6d

Please sign in to comment.