Skip to content

Conversation

@DedSec256
Copy link
Contributor

No description provided.

@DedSec256 DedSec256 changed the title Support #warnon Lexer: Support #warnon Nov 21, 2025
@DedSec256 DedSec256 marked this pull request as ready for review November 21, 2025 01:08
FSharpIdentifierToken(type:IDENTIFIER, text:Module)
NewLine(type:NEW_LINE, text:\n) spaces:"\n"
NewLine(type:NEW_LINE, text:\n) spaces:"\n"
FSharpWarningDirective
Copy link
Member

Choose a reason for hiding this comment

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

Looking at this dump, I'd expect that the directive would be placed inside the module, at least for the top level ones. Are the any pros/cons?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, in FCS it is implemented in a lexer by analogy with

module M

// A

Here, the entire module in the tree is only the first line, since it does not contain any elements. Therefore, the module does not contain the directive token (as well as the line comment).

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.

3 participants