Skip to content

fix: handle table names containing dots in AC0031 CodeFix (#340)#352

Merged
Arthurvdv merged 1 commit into
mainfrom
fix/ac0031-dotted-table-names-v2
Jun 18, 2026
Merged

fix: handle table names containing dots in AC0031 CodeFix (#340)#352
Arthurvdv merged 1 commit into
mainfrom
fix/ac0031-dotted-table-names-v2

Conversation

@Arthurvdv

Copy link
Copy Markdown
Member

Handles AL table names containing dots (namespaced/dotted names) in the AC0031 CodeFix.

Moved into main from release/v1.0.0 (commit b36a808, originally PR #340) so it lands without implying a v1.0.0 release. Independent of the other split PRs.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

fix: handle table names containing dots in AC0031 CodeFix (#339)
 
The CodeFix previously used LastIndexOf('.') to detect namespace
qualification, treating dots within table names (e.g. "ABC Example
Header.Line") as namespace separators. This produced invalid syntax
like tabledata "ABC Example Header"."Line" = r.
 
Restructured the API to pass namespace and table name as separate
parameters via a new ResolvedTableName struct, eliminating the
fragile parse-from-combined-string pattern entirely.
 
Also fixed multi-segment namespace handling: CreateObjectReference
previously passed namespaces like "MyPTE.Sales" as a single
IdentifierName, rendering them as a quoted identifier. It now builds
nested QualifiedName nodes so MyPTE.Sales."ABC Example Header.Line"
renders correctly.
 
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@Arthurvdv Arthurvdv merged commit 15f5d1e into main Jun 18, 2026
47 checks passed
@Arthurvdv Arthurvdv deleted the fix/ac0031-dotted-table-names-v2 branch June 18, 2026 14:47
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