Skip to content

Deprecate module keyword for namespace declarations #58007

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

Merged
merged 8 commits into from
Jul 24, 2024
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into deprecated-module-dec…
…laration
  • Loading branch information
Zzzen committed May 31, 2024
commit 3b8070686b8498422ae77522260b7aead3b18fe1
10 changes: 9 additions & 1 deletion src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1797,9 +1797,17 @@
"category": "Error",
"code": 1535
},
"Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead.": {
"category": "Error",
"code": 1536
},
"Decimal escape sequences and backreferences are not allowed in a character class.": {
"category": "Error",
"code": 1537
},
"A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.": {
"category": "Suggestion",
"code": 1536,
"code": 1538,
"reportsDeprecated": true
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
const ranges = test.ranges();
verify.getSuggestionDiagnostics([
{
"code": 1536,
"code": 1538,
"message": "A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
"reportsDeprecated": true,
"range": ranges[0]
},
{
"code": 1536,
"code": 1538,
"message": "A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
"reportsDeprecated": true,
"range": ranges[1]
},
{
"code": 1536,
"code": 1538,
"message": "A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
"reportsDeprecated": true,
"range": ranges[2]
},
{
"code": 1536,
"code": 1538,
"message": "A namespace declaration should not be declared using the module keyword. Please use the namespace keyword instead.",
"reportsDeprecated": true,
"range": ranges[3]
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy