Skip to content

Name the core API for 1.0 - #3

Merged
virzak merged 1 commit into
masterfrom
refactor/api-names
Sep 14, 2026
Merged

virzak merged 1 commit into
masterfrom
refactor/api-names

Conversation

@virzak

@virzak virzak commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Renames in the core API ahead of 1.0, which fixes them. Nothing generated changes.

Was Now
MethodParent / MethodParentDeclaration ContainingTypeKind / ContainingType (Kind, Name, TypeParameters)
MethodLocation.Parents / IsCSharp14Extension / Index ContainingTypes / IsInExtensionBlock / OverloadIndex
ClonedMethod.MethodName / DisableNullable FileName / NullableDisabled
ReportedDiagnostic.Trivia MessageArguments (params string[])
CloningRewriter.ProcessSymbol / ProcessType / MakeType Qualify / Qualify / FullyQualifiedName

FullyQualifiedName rather than QualifiedName, which would hide SyntaxFactory.QualifiedName in rewriters that import SyntaxFactory statically.

🤖 Generated with Claude Code

Ahead of the stable release, which fixes these names:

- MethodParent and MethodParentDeclaration become ContainingTypeKind and ContainingType, with Kind, Name and TypeParameters, matching the 'containing type' the documentation uses. MethodLocation.Parents becomes ContainingTypes.
- MethodLocation.IsCSharp14Extension becomes IsInExtensionBlock, and Index becomes OverloadIndex.
- ClonedMethod.MethodName becomes FileName, which is what it holds, and DisableNullable becomes NullableDisabled.
- ReportedDiagnostic.Trivia becomes MessageArguments, which takes any number of them.
- CloningRewriter.ProcessSymbol and ProcessType become Qualify, and MakeType becomes FullyQualifiedName. QualifiedName would have hidden SyntaxFactory.QualifiedName in every rewriter which imports SyntaxFactory statically.

Nothing generated changes.

Generated with Claude Code
@virzak virzak mentioned this pull request Sep 14, 2026
@virzak
virzak merged commit 6540837 into master Sep 14, 2026
8 checks passed
@virzak
virzak deleted the refactor/api-names branch September 14, 2026 10:34
@virzak virzak mentioned this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant