Azure / Azure/azure-sdk-tools

Handle type aliases that resolve to ArrayType syntax

Open
#8,670 0 comments 0 reactions 0 assignees View on GitHub
APIView feature-request Go
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
144

Description

For example, `azblob` has `type TransferValidationTypeMD5 = exported.TransferValidationTypeMD5` -> `type TransferValidationTypeMD5 []byte`. The switch that creates a `TokenMaker` for the definition doesn't handle `*ast.ArrayType`, so this appears as `type TransferValidationTypeMD5 internal/exported.TransferValidationTypeMD5` in the review.

Contributor guide

Open the contributing guide

Research direction

Search for the switch that creates a TokenMaker for a definition and inspect how it handles *ast.ArrayType. Use the azblob TransferValidationTypeMD5 example as the reproduction, then verify the review output resolves the alias to []byte rather than displaying internal/exported.TransferValidationTypeMD5.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.