Conversation
|
❌ There is undocummented changes. Run The following packages have changes but are not documented.
The following packages have already been documented:
Show changes
|
commit: |
|
You can try these changes here
|
| @@ -1794,6 +1794,31 @@ enum Foo { | |||
| ...Baz, | |||
| Two: "2", | |||
| } | |||
There was a problem hiding this comment.
can we also add test for printing the internal modifier for various types
| begin: `\\b(const)\\b\\s+(${identifier})`, | ||
| begin: `(?:(internal)\\s+)?\\b(const)\\b\\s+(${identifier})`, | ||
| beginCaptures: { | ||
| "1": { scope: "keyword.other.tsp" }, |
There was a problem hiding this comment.
I see those modifiers keywords are tagged as storage.modifier.<ext> for ts, java, js, csharp
- https://github.com/microsoft/TypeScript-TmLanguage/blob/b25c379478aac85be855252ac06bd71c88cac1b7/TypeScript.YAML-tmLanguage#L2523
- https://github.com/microsoft/vscode/blob/13873216891ce5ac2aa2dd5e2c4b96c57b8b3dae/extensions/javascript/syntaxes/JavaScript.tmLanguage.json#L1384C17-L1384C33
- https://github.com/dotnet/csharp-tmLanguage/blob/b1545c82fc3d30ff3e7eb4203792fcf2b48baf4d/src/csharp.tmLanguage.yml#L257
feel like we probably should align?
| reportInvalidDecorators(decorators, "const statement"); | ||
| item = parseConstStatement(pos); | ||
| break; | ||
| // case Token.ModelKeyword: |
| }, | ||
| }, | ||
| "function-extern": { | ||
| "invalid-modifier": { |
| }, | ||
| }, | ||
| "decorator-extern": { | ||
| "function-extern": { |
There was a problem hiding this comment.
should this also be replaced

This PR enables libraries to define
internalsymbols that cannot be referenced from outside the same project scope.internalcan apply to any declaration except namespace. Internality is a property of symbols, not of types. A Type that is declaredinternalcan be used from a different package, but can't be referred to by name. This allows you to use an alias to publicly expose aninternaldeclaration:Resolution logic for symbols declared with
internalis:checker.resolveTypeReferenceor otherwise synthetic).Notes:
internalis allowed as the name of a model property, since it is allowed as one now. The logic for this also allowsexternto be a model property name, which isn't currently allowed.Implementation:
SymbolFlags.Internal, which binds to a symbol if the corresponding declaration hasModifierFlags.Internal.resolveTypeReferenceSymInternalwhen resolving a type reference. Access control must pass for any referenced symbol.