Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Symbol refactor - DO NOT REVIEW #4849

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 23, 2024

Taking over this pr #2640 just creating for diff purpose for now

@timotheeguerin timotheeguerin changed the title [WIP] Symbol refactor [WIP] Symbol refactor - DO NOT REVIEW Oct 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Oct 23, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 23, 2024

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/compiler
  • @typespec/openapi3
Show changes

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Copy link
Member Author

@timotheeguerin timotheeguerin Oct 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To check: lsp seems to have some reload issue

const stdTypes: Partial<StdTypes> = {};
const symbolLinks = new Map<number, SymbolLinks>();
const mergedSymbols = new Map<Sym, Sym>();
const docFromCommentForSym = new Map<Sym, string>();
const augmentDecoratorsForSym = new Map<Sym, AugmentDecoratorStatementNode[]>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could move this whole resolution into the name resolver + consider renaming it to linker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants