Skip to content

docs(FC0002): document keyword-named identifiers, the continue statement, Rec and built-in class receivers - #224

Merged
Arthurvdv merged 1 commit into
mainfrom
docs/fc0002-keyword-named-identifiers
Nov 17, 2026
Merged

Arthurvdv merged 1 commit into
mainfrom
docs/fc0002-keyword-named-identifiers

Conversation

@Arthurvdv

Copy link
Copy Markdown
Member

Companion to ALCops/Analyzers#636

Updates the FC0002 (Casing mismatch) page to describe the rule's current behaviour:

  • New section "Identifiers named after keywords": variables, parameters, fields (Rec.Type, Rec.Code) and procedures named after AL keywords are checked like any other identifier. The declaration decides the canonical spelling.
  • New section "The continue statement": Continue; / CONTINUE; inside a loop is reported with "Use 'continue'". A variable named Continue in scope takes precedence, as in the compiler.
  • The implicit variables Rec, xRec and CurrPage are checked (rec.SystemId -> Rec).
  • Built-in object classes used as a receiver are checked against the compiler's class name: XmlPort.Run(XmlPort::...) is reported on both the receiver and the :: expression, and CODEUNIT.Run / PAGE.RunModal / REPORT.Run are reported with Codeunit / Page / Report.

Verified with a local hugo --minify build.

🤖 Generated with Claude Code

…ent, Rec and built-in class receivers

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Arthurvdv
Arthurvdv merged commit 9b7521a into main Nov 17, 2026
1 check passed
@Arthurvdv
Arthurvdv deleted the docs/fc0002-keyword-named-identifiers branch November 17, 2026 13:18
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