diff --git a/change/@minecraft-markup-generators-plugin-de097a3a-1fb3-4d2d-8505-133ae7789860.json b/change/@minecraft-markup-generators-plugin-de097a3a-1fb3-4d2d-8505-133ae7789860.json new file mode 100644 index 00000000..6661299c --- /dev/null +++ b/change/@minecraft-markup-generators-plugin-de097a3a-1fb3-4d2d-8505-133ae7789860.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add tags for priviledge levels", + "packageName": "@minecraft/markup-generators-plugin", + "email": "brandon.chan@skyboxlabs.com", + "dependentChangeType": "patch" +} diff --git a/tools/api-docs-generator-test-snapshots/test/additive_beta_change/__snapshots__/additiveBetaChange.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/additive_beta_change/__snapshots__/additiveBetaChange.spec.ts.snap index 5425d347..47544cf3 100644 --- a/tools/api-docs-generator-test-snapshots/test/additive_beta_change/__snapshots__/additiveBetaChange.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/additive_beta_change/__snapshots__/additiveBetaChange.spec.ts.snap @@ -187,7 +187,7 @@ export class ExampleClass1 { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithAddedArgument(): boolean; @@ -226,7 +226,7 @@ export class ExampleClass1 { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithAddedArgument(addedArg?: number): boolean; diff --git a/tools/api-docs-generator-test-snapshots/test/array_of_optional_variants/__snapshots__/arrayOfOptionalVariants.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/array_of_optional_variants/__snapshots__/arrayOfOptionalVariants.spec.ts.snap index f72b488a..9ba7d7cc 100644 --- a/tools/api-docs-generator-test-snapshots/test/array_of_optional_variants/__snapshots__/arrayOfOptionalVariants.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/array_of_optional_variants/__snapshots__/arrayOfOptionalVariants.spec.ts.snap @@ -90,7 +90,7 @@ export class ClassWithArrayOfVariantsProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleMember?: (boolean | number | string | undefined)[]; diff --git a/tools/api-docs-generator-test-snapshots/test/array_of_variants/__snapshots__/arrayOfVariants.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/array_of_variants/__snapshots__/arrayOfVariants.spec.ts.snap index 9d22952e..02f9f075 100644 --- a/tools/api-docs-generator-test-snapshots/test/array_of_variants/__snapshots__/arrayOfVariants.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/array_of_variants/__snapshots__/arrayOfVariants.spec.ts.snap @@ -90,7 +90,7 @@ export class ClassWithArrayOfVariantsProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleMember?: (boolean | string)[]; diff --git a/tools/api-docs-generator-test-snapshots/test/bounds/__snapshots__/bounds.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/bounds/__snapshots__/bounds.spec.ts.snap index d140de0c..087351a5 100644 --- a/tools/api-docs-generator-test-snapshots/test/bounds/__snapshots__/bounds.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/bounds/__snapshots__/bounds.spec.ts.snap @@ -479,68 +479,68 @@ export class ClassWithBounds { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [0, 0] */ r: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Minimum Value: -255 */ s: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Maximum Value: 1 */ t: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ u: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [-255, -1] */ v: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ w: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Minimum Value: 1 */ x: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Maximum Value: 255 */ y: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [1, 255] */ z: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param s * Minimum value: -255 @@ -602,68 +602,68 @@ export class ClassWithBounds { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [0, 0] */ r: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Minimum Value: 1 */ s: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Maximum Value: 255 */ t: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ u: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [1, 255] */ v: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Bounds: [1, 255] */ w: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Maximum Value: 255 */ x: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * Minimum Value: 1 */ y: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ z: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param s * Minimum value: 1 diff --git a/tools/api-docs-generator-test-snapshots/test/changelog_diffing/__snapshots__/changelogDiffing.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/changelog_diffing/__snapshots__/changelogDiffing.spec.ts.snap index bd866cb1..e531e090 100644 --- a/tools/api-docs-generator-test-snapshots/test/changelog_diffing/__snapshots__/changelogDiffing.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/changelog_diffing/__snapshots__/changelogDiffing.spec.ts.snap @@ -4079,7 +4079,7 @@ export class ClassWithCrossModuleProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleProperty: testmodule1.SmallClass; @@ -4117,7 +4117,7 @@ export class ClassWithCrossModuleProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleProperty: testmodule1.SmallClass; @@ -4155,7 +4155,7 @@ export class ClassWithCrossModuleProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleProperty: testmodule1.SmallClass; @@ -4250,25 +4250,25 @@ export class ClassWithAddedBaseClass { export class ClassWithConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ x: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ y: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ z: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ constructor(x: number, y: number, z: number); @@ -4283,13 +4283,13 @@ export class EntityIterator implements Iterable { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ [Symbol.iterator](): Iterator; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ next(): IteratorResult; @@ -4299,43 +4299,43 @@ export class ExampleClass1 { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ boolProperty: boolean; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ floatProperty: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int16Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int32Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int64Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int8Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ @@ -4343,13 +4343,13 @@ export class ExampleClass1 { readonly propertyWithReadOnlyChanging: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ stringProperty: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ @@ -4357,68 +4357,68 @@ export class ExampleClass1 { readonly stringPropertyReadOnly: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint16Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint32Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint64Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint8Property: number; static readonly ClassConstantExample = 1337; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethod(stringArgument: string, stringArgumentOptional?: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithAddedArgument(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithAddedErrorable(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithChangedArgumentType(arg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithChangedReturnType(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithRemovedArgument(removedArg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ @@ -4429,7 +4429,7 @@ export class SmallClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ @@ -4452,31 +4452,31 @@ export interface RemovedInterface { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithAddedArgument(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithAddedErrorable(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithChangedArgumentType(arg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithRemovedArgument(removedArg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ @@ -4554,37 +4554,37 @@ export class ClassWithAddedBaseClass extends SmallClass { export class ClassWithConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ w: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ x: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ y: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ z: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ constructor(x: number, y: number, z: number); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testFunction(argument1: string, argument2: string): number; @@ -4598,13 +4598,13 @@ export class EntityIterator implements Iterable { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ [Symbol.iterator](): Iterator; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ next(): IteratorResult; @@ -4614,62 +4614,62 @@ export class ExampleClass1 { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ boolProperty: boolean; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ floatProperty: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int16Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int32Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int64Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int8Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ propertyWithChangedType: boolean; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ propertyWithReadOnlyChanging: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ stringProperty: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ @@ -4677,69 +4677,69 @@ export class ExampleClass1 { readonly stringPropertyReadOnly: string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint16Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint32Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint64Property: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint8Property: number; static readonly ClassConstantExample = 1338; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethod(stringArgument: string, stringArgumentOptional?: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithAddedArgument(addedArg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ testMethodWithAddedErrorable(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithChangedArgumentType(arg: number): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithChangedReturnType(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithRemovedArgument(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ testMethodWithRemovedErrorable(): boolean; @@ -4749,7 +4749,7 @@ export class SmallClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ @@ -4766,38 +4766,38 @@ export interface ExampleInterface { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithAddedArgument(addedArg: string): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ export function testFunctionWithAddedErrorable(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithChangedArgumentType(arg: number): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithRemovedArgument(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testFunctionWithRemovedErrorable(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function testGlobalFunction(argument1: string): number; diff --git a/tools/api-docs-generator-test-snapshots/test/closures/__snapshots__/closures.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/closures/__snapshots__/closures.spec.ts.snap index 90eefb30..407b566b 100644 --- a/tools/api-docs-generator-test-snapshots/test/closures/__snapshots__/closures.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/closures/__snapshots__/closures.spec.ts.snap @@ -235,9 +235,9 @@ export class ExampleClass { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * * @param closureRestrictedExec * This closure is called with restricted-execution privilege. diff --git a/tools/api-docs-generator-test-snapshots/test/data_buffer/__snapshots__/data_buffer.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/data_buffer/__snapshots__/data_buffer.spec.ts.snap index 13ca8f11..6a2598d8 100644 --- a/tools/api-docs-generator-test-snapshots/test/data_buffer/__snapshots__/data_buffer.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/data_buffer/__snapshots__/data_buffer.spec.ts.snap @@ -162,61 +162,61 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ doubleDataBufferProperty: Float64Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ floatDataBufferProperty: Float32Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int16DataBufferProperty: Int16Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int32DataBufferProperty: Int32Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int64DataBufferProperty: BigInt64Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ int8DataBufferProperty: Uint8Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint16DataBufferProperty: Uint16Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint32DataBufferProperty: Uint32Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint64DataBufferProperty: BigUint64Array; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ uint8DataBufferProperty: Uint8Array; diff --git a/tools/api-docs-generator-test-snapshots/test/deprecation_warning/__snapshots__/deprecationWarning.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/deprecation_warning/__snapshots__/deprecationWarning.spec.ts.snap index 586986f0..af1e7f7f 100644 --- a/tools/api-docs-generator-test-snapshots/test/deprecation_warning/__snapshots__/deprecationWarning.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/deprecation_warning/__snapshots__/deprecationWarning.spec.ts.snap @@ -681,13 +681,13 @@ export class StableClassWithDeprecatedMembers { * @deprecated This property is deprecated and will be removed in 2.0.0. * * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ deprecatedProperty: boolean; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ stableProperty: boolean; @@ -700,13 +700,13 @@ export class StableClassWithDeprecatedMembers { * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ deprecatedFunction(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ stableFunction(): boolean; @@ -748,7 +748,7 @@ export class StableErrorWithDeprecatedProperty extends Error { * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function deprecatedGlobalFunction(): boolean; @@ -756,7 +756,7 @@ export function deprecatedGlobalFunction(): boolean; * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function stableGlobalFunction(): boolean; @@ -824,13 +824,13 @@ export class StableClassWithDeprecatedMembers { * @deprecated This property is deprecated and will be removed in 2.0.0. * * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ deprecatedProperty: boolean; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ stableProperty: boolean; @@ -843,13 +843,13 @@ export class StableClassWithDeprecatedMembers { * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ deprecatedFunction(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ stableFunction(): boolean; @@ -890,7 +890,7 @@ export class StableErrorWithDeprecatedProperty extends Error { /** * @beta * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function betaGlobalFunctionNotInAlpha(): boolean; @@ -898,7 +898,7 @@ export function betaGlobalFunctionNotInAlpha(): boolean; * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function deprecatedGlobalFunction(): boolean; @@ -906,7 +906,7 @@ export function deprecatedGlobalFunction(): boolean; * @deprecated This function is deprecated and will be removed in 2.0.0. * * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function stableGlobalFunction(): boolean; @@ -948,14 +948,14 @@ export class StableClassWithDeprecatedMembers { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ stableProperty: boolean; static readonly stableConstant: boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ stableFunction(): boolean; @@ -974,7 +974,7 @@ export class StableErrorWithDeprecatedProperty extends Error { /** * @alpha * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function v2GlobalFunction(): boolean; diff --git a/tools/api-docs-generator-test-snapshots/test/errors/__snapshots__/errors.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/errors/__snapshots__/errors.spec.ts.snap index e2b4f481..0e3fa6bc 100644 --- a/tools/api-docs-generator-test-snapshots/test/errors/__snapshots__/errors.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/errors/__snapshots__/errors.spec.ts.snap @@ -429,14 +429,14 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. */ examplePropertyThatThrows: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. * @@ -445,7 +445,7 @@ export class ExampleClass { examplePropertyThatThrowsCustomError: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. * @@ -462,7 +462,7 @@ export class ExampleClass { examplePropertyThatThrowsWithReadOnlyPrivilege: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. * @@ -471,7 +471,7 @@ export class ExampleClass { examplePropertyWithCrossModuleError: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * * @throws This property can throw when used. * @@ -480,20 +480,20 @@ export class ExampleClass { examplePropertyWithCrossModuleReturnAndError: minecraftexamplemodule2.CrossModuleReturn; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ exampleMethodThatTakesErrorParam(errorParam: unknown): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ exampleMethodThatThrows(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * @@ -502,7 +502,7 @@ export class ExampleClass { exampleMethodThatThrowsCustomError(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * @@ -539,14 +539,14 @@ export class ExampleError2 extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. */ export function exampleFunctionThatThrows(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * @@ -555,7 +555,7 @@ export function exampleFunctionThatThrows(): string; export function exampleFunctionThatThrowsCustomError(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * @@ -566,7 +566,7 @@ export function exampleFunctionThatThrowsCustomError(): string; export function exampleFunctionThatThrowsTwoErrors(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * @@ -575,7 +575,7 @@ export function exampleFunctionThatThrowsTwoErrors(): string; export function exampleFunctionWithCrossModuleError(): number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @throws This function can throw errors. * diff --git a/tools/api-docs-generator-test-snapshots/test/escaped_names/__snapshots__/escapedNames.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/escaped_names/__snapshots__/escapedNames.spec.ts.snap index fe3d8111..6f5ff234 100644 --- a/tools/api-docs-generator-test-snapshots/test/escaped_names/__snapshots__/escapedNames.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/escaped_names/__snapshots__/escapedNames.spec.ts.snap @@ -242,31 +242,31 @@ export class ClassWithSpookyMemberNames { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ '5memberWithNumberStart': number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ 'member with spaces': number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ 'type': number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ 'void': number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ delete(): void; diff --git a/tools/api-docs-generator-test-snapshots/test/general/__snapshots__/general.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/general/__snapshots__/general.spec.ts.snap index f91a7419..71c11483 100644 --- a/tools/api-docs-generator-test-snapshots/test/general/__snapshots__/general.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/general/__snapshots__/general.spec.ts.snap @@ -552,7 +552,7 @@ exports[`General > Properly generates documentation for the input > npm/types/te export class ClassWithEmptyConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; @@ -562,14 +562,14 @@ export class ClassWithEmptyConstructor { export class ClassWithExplicitConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; readonly readOnlyNumberProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ constructor(constructorArg: string); @@ -579,7 +579,7 @@ export class ClassWithOptionalProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; @@ -595,7 +595,7 @@ export interface ExampleInterface { * @remarks * This is a test function * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @example sharedExample.ts * \`\`\`typescript @@ -2320,7 +2320,7 @@ exports[`General > Properly generates documentation for the input > typedoc/clas

Constructors

Properties

numberProperty: number

This property can't be used in restricted-execution mode.

+

Constructors

Properties

numberProperty: number

restricted-execution-unusable - This property can't be used in restricted-execution mode.

readOnlyNumberProperty: number
" `; @@ -2329,8 +2329,8 @@ exports[`General > Properly generates documentation for the input > typedoc/clas "ClassWithExplicitConstructor | Minecraft

Class ClassWithExplicitConstructor

Constructors

Properties

numberProperty: number

This property can't be used in restricted-execution mode.

+

Constructors

Properties

numberProperty: number

restricted-execution-unusable - This property can't be used in restricted-execution mode.

readOnlyNumberProperty: number
" `; @@ -2338,14 +2338,14 @@ exports[`General > Properly generates documentation for the input > typedoc/clas exports[`General > Properly generates documentation for the input > typedoc/classes/ClassWithOptionalProperty.html 1`] = ` "ClassWithOptionalProperty | Minecraft

Class ClassWithOptionalProperty

Properties

numberProperty: number

This property can't be used in restricted-execution mode.

+

Properties

numberProperty: number

restricted-execution-unusable - This property can't be used in restricted-execution mode.

optionalNumberProperty?: number
" `; exports[`General > Properly generates documentation for the input > typedoc/functions/ModuleFunction.html 1`] = ` "ModuleFunction | Minecraft

Function ModuleFunction

  • Returns ClassWithConstructor

    This is a test function

    -

    This function can't be called in restricted-execution mode.

    +

    no-restricted-execution - This function can't be called in restricted-execution mode.

    let sharedExample = true;

    /\\* This is a sample that also declares a function and has braces */
    function testFunction() {}
    @@ -2417,7 +2417,7 @@ exports[`General > Properly generates documentation for the input > typescript/t export class ClassWithEmptyConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; @@ -2427,14 +2427,14 @@ export class ClassWithEmptyConstructor { export class ClassWithExplicitConstructor { /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; readonly readOnlyNumberProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ constructor(constructorArg: string); @@ -2444,7 +2444,7 @@ export class ClassWithOptionalProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ numberProperty: number; @@ -2460,7 +2460,7 @@ export interface ExampleInterface { * @remarks * This is a test function * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @example sharedExample.ts * \`\`\`typescript diff --git a/tools/api-docs-generator-test-snapshots/test/hybrid_script_native_module/__snapshots__/hybrid_script_native_module.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/hybrid_script_native_module/__snapshots__/hybrid_script_native_module.spec.ts.snap index fb6c60d5..1436bfae 100644 --- a/tools/api-docs-generator-test-snapshots/test/hybrid_script_native_module/__snapshots__/hybrid_script_native_module.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/hybrid_script_native_module/__snapshots__/hybrid_script_native_module.spec.ts.snap @@ -564,7 +564,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -573,7 +573,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -683,7 +683,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -692,7 +692,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -1054,7 +1054,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -1063,7 +1063,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -1144,7 +1144,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -1153,7 +1153,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -1802,7 +1802,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -1811,7 +1811,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -1921,7 +1921,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -1930,7 +1930,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -2123,7 +2123,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -2132,7 +2132,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc @@ -2213,7 +2213,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -2222,7 +2222,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc diff --git a/tools/api-docs-generator-test-snapshots/test/iterator/__snapshots__/iterator.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/iterator/__snapshots__/iterator.spec.ts.snap index 41fa40c8..3c77b2f0 100644 --- a/tools/api-docs-generator-test-snapshots/test/iterator/__snapshots__/iterator.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/iterator/__snapshots__/iterator.spec.ts.snap @@ -107,13 +107,13 @@ export class ExampleIterator implements Iterable { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ [Symbol.iterator](): Iterator; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ next(): IteratorResult; diff --git a/tools/api-docs-generator-test-snapshots/test/maps/__snapshots__/maps.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/maps/__snapshots__/maps.spec.ts.snap index db73fd38..3449ddea 100644 --- a/tools/api-docs-generator-test-snapshots/test/maps/__snapshots__/maps.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/maps/__snapshots__/maps.spec.ts.snap @@ -115,19 +115,19 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ mapProperty: Record; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ exampleMethodReturnsMap(): Record; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ exampleMethodTakesMapArg(arg: Record): void; diff --git a/tools/api-docs-generator-test-snapshots/test/optionals/__snapshots__/optionals.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/optionals/__snapshots__/optionals.spec.ts.snap index b29cb5cd..f025db98 100644 --- a/tools/api-docs-generator-test-snapshots/test/optionals/__snapshots__/optionals.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/optionals/__snapshots__/optionals.spec.ts.snap @@ -237,31 +237,31 @@ export class ClassWithOptionals { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ optionalProperty?: boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ methodThatReturnsOptional(): boolean | undefined; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ methodThatTakesOptionals(arg1?: boolean, arg2?: string): void; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ methodThatTakesRecordOfOptionalVariants(values: Record): void; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param defaultIs1 * Defaults to: 1 diff --git a/tools/api-docs-generator-test-snapshots/test/prerelease_warning/__snapshots__/prereleaseWarning.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/prerelease_warning/__snapshots__/prereleaseWarning.spec.ts.snap index 746853ff..f4afdab5 100644 --- a/tools/api-docs-generator-test-snapshots/test/prerelease_warning/__snapshots__/prereleaseWarning.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/prerelease_warning/__snapshots__/prereleaseWarning.spec.ts.snap @@ -570,14 +570,14 @@ export class StableClass { /** * @beta * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ prereleaseProperty: number; /** * @beta * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ prereleaseMethod(): number; @@ -598,7 +598,7 @@ export interface StableInterface { /** * @beta * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function prereleaseFunction(): boolean; diff --git a/tools/api-docs-generator-test-snapshots/test/property_and_function_privilege/__snapshots__/propertyAndFunctionPrivilege.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/property_and_function_privilege/__snapshots__/propertyAndFunctionPrivilege.spec.ts.snap index 647ae69b..42fd009a 100644 --- a/tools/api-docs-generator-test-snapshots/test/property_and_function_privilege/__snapshots__/propertyAndFunctionPrivilege.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/property_and_function_privilege/__snapshots__/propertyAndFunctionPrivilege.spec.ts.snap @@ -227,13 +227,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ no_privilege_property: number; /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ none_privileged_property: number; @@ -241,7 +241,7 @@ export class ExampleClass { * @remarks * Test description * - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ none_privileged_property_with_docs: number; @@ -249,21 +249,21 @@ export class ExampleClass { readonly read_only_property: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ early_privileged_function(): boolean; /** * @remarks - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ multi_privileged_function(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ non_privileged_function(): boolean; @@ -271,7 +271,7 @@ export class ExampleClass { * @remarks * Test description * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ non_privileged_function_with_comments(): boolean; @@ -280,21 +280,21 @@ export class ExampleClass { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ export function early_privileged_function(): boolean; /** * @remarks - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ export function multi_privileged_function(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function non_privileged_function(): boolean; @@ -302,7 +302,7 @@ export function non_privileged_function(): boolean; * @remarks * Test description * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function non_privileged_function_with_comments(): boolean; @@ -1536,70 +1536,70 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can be used in early-execution mode. + * @privilege early-execution-usable - This property can be used in early-execution mode. * */ prop_both_privileges: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * - * This property can be used in early-execution mode. + * @privilege early-execution-usable - This property can be used in early-execution mode. * */ prop_earlyexe_privilege: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * - * This property can be read in early-execution mode. + * @privilege early-execution-readable - This property can be read in early-execution mode. * */ prop_getearlyexe_privileges: number; /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ prop_getreadonly_privileges: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ prop_none_privilege: number; prop_readonly_privilege: number; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * - * This property can be edited in early-execution mode. + * @privilege early-execution-editable - This property can be edited in early-execution mode. * */ prop_setearlyexe_privileges: number; /** * @remarks - * This property can't be read in restricted-execution mode. + * @privilege restricted-execution-non-readable - This property can't be read in restricted-execution mode. * */ prop_setreadonly_privileges: number; /** * @remarks - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ memberfn_both_privileges(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ memberfn_earlyexe_privilege(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ memberfn_none_privilege(): boolean; @@ -1608,21 +1608,21 @@ export class ExampleClass { /** * @remarks - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ export function fn_both_privileges(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * */ export function fn_earlyexe_privilege(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function fn_none_privilege(): boolean; @@ -1813,13 +1813,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ no_privilege_property: number; /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ none_privileged_property: number; @@ -1827,7 +1827,7 @@ export class ExampleClass { * @remarks * Test description * - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ none_privileged_property_with_docs: number; @@ -1835,7 +1835,7 @@ export class ExampleClass { readonly read_only_property: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ non_privileged_function(): boolean; @@ -1843,7 +1843,7 @@ export class ExampleClass { * @remarks * Test description * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ non_privileged_function_with_comments(): boolean; @@ -1852,7 +1852,7 @@ export class ExampleClass { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function non_privileged_function(): boolean; @@ -1860,7 +1860,7 @@ export function non_privileged_function(): boolean; * @remarks * Test description * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function non_privileged_function_with_comments(): boolean; @@ -2101,42 +2101,42 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ both_none_name_prop: number; both_read_only_name_prop: number; /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ new_default_name_prop: number; new_restrict_name_prop: number; /** * @remarks - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * */ old_none_name_prop: number; old_read_only_name_prop: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ both_none_name_func(): boolean; both_read_only_name_func(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ new_default_name_func(): boolean; new_restrict_name_func(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ old_none_name_func(): boolean; @@ -2145,21 +2145,21 @@ export class ExampleClass { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function both_none_name_func(): boolean; export function both_read_only_name_func(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function new_default_name_func(): boolean; export function new_restrict_name_func(): boolean; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function old_none_name_func(): boolean; diff --git a/tools/api-docs-generator-test-snapshots/test/record_of_optional_variants/__snapshots__/recordOfOptionalVariants.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/record_of_optional_variants/__snapshots__/recordOfOptionalVariants.spec.ts.snap index 77498a5c..425f5fe6 100644 --- a/tools/api-docs-generator-test-snapshots/test/record_of_optional_variants/__snapshots__/recordOfOptionalVariants.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/record_of_optional_variants/__snapshots__/recordOfOptionalVariants.spec.ts.snap @@ -90,7 +90,7 @@ export class ClassWithRecordOfOptionalVariantsProperty { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ exampleMember?: Record; diff --git a/tools/api-docs-generator-test-snapshots/test/script_generated_module/__snapshots__/script_generated_module.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/script_generated_module/__snapshots__/script_generated_module.spec.ts.snap index 33a454da..fda3f87c 100644 --- a/tools/api-docs-generator-test-snapshots/test/script_generated_module/__snapshots__/script_generated_module.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/script_generated_module/__snapshots__/script_generated_module.spec.ts.snap @@ -248,7 +248,7 @@ export declare class ScriptGeneratedClass { * @remarks * A script generated property * - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ testProperty: string | undefined; @@ -257,7 +257,7 @@ export declare class ScriptGeneratedClass { * A script generated function with doc text defined in TSDoc * comments * - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * * @param tsdocParam * Param comment from TSDoc diff --git a/tools/api-docs-generator-test-snapshots/test/skip_merging_with_parent/__snapshots__/skipMerging.test.ts.snap b/tools/api-docs-generator-test-snapshots/test/skip_merging_with_parent/__snapshots__/skipMerging.test.ts.snap index a7f64962..44c95dbc 100644 --- a/tools/api-docs-generator-test-snapshots/test/skip_merging_with_parent/__snapshots__/skipMerging.test.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/skip_merging_with_parent/__snapshots__/skipMerging.test.ts.snap @@ -26,7 +26,7 @@ exports[`Skip Merging With Parent > Properly skips merging if skip merging is se */ /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ChildFunction(): number; @@ -57,7 +57,7 @@ exports[`Skip Merging With Parent > Properly skips merging if skip merging is se */ /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ParentFunction(): number; diff --git a/tools/api-docs-generator-test-snapshots/test/skip_merging_without_parent/__snapshots__/skipMerging.test.ts.snap b/tools/api-docs-generator-test-snapshots/test/skip_merging_without_parent/__snapshots__/skipMerging.test.ts.snap index c1c70189..6981f144 100644 --- a/tools/api-docs-generator-test-snapshots/test/skip_merging_without_parent/__snapshots__/skipMerging.test.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/skip_merging_without_parent/__snapshots__/skipMerging.test.ts.snap @@ -26,7 +26,7 @@ exports[`Skip Merging Without Parent > Properly skips merging if skip merging is */ /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ChildFunction(): number; diff --git a/tools/api-docs-generator-test-snapshots/test/static_functions/__snapshots__/staticFunctions.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/static_functions/__snapshots__/staticFunctions.spec.ts.snap index 701cad58..8a0b72a6 100644 --- a/tools/api-docs-generator-test-snapshots/test/static_functions/__snapshots__/staticFunctions.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/static_functions/__snapshots__/staticFunctions.spec.ts.snap @@ -126,25 +126,25 @@ export class ClassWithStaticFunction { private constructor(); /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ bbbExampleMemberFunction(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ dddExampleMemberFunction(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ static aaaExampleStaticFunction(): string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ static cccExampleStaticFunction(): string; diff --git a/tools/api-docs-generator-test-snapshots/test/type_linking/__snapshots__/typeLinking.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/type_linking/__snapshots__/typeLinking.spec.ts.snap index 2c2eb5ca..04b3119c 100644 --- a/tools/api-docs-generator-test-snapshots/test/type_linking/__snapshots__/typeLinking.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/type_linking/__snapshots__/typeLinking.spec.ts.snap @@ -904,13 +904,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -931,7 +931,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -1004,13 +1004,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -1031,7 +1031,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -1203,13 +1203,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -1230,7 +1230,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -2430,13 +2430,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -2457,7 +2457,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -2530,13 +2530,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -2557,7 +2557,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -2729,13 +2729,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -2756,7 +2756,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -2810,13 +2810,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -2837,7 +2837,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; @@ -2891,13 +2891,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ ExampleProperty: number; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ ExampleMethod(testArg: string): boolean; @@ -2918,7 +2918,7 @@ export class ExampleError extends Error { /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ export function ExampleFunction(testArg: string): boolean; diff --git a/tools/api-docs-generator-test-snapshots/test/variants/__snapshots__/variants.spec.ts.snap b/tools/api-docs-generator-test-snapshots/test/variants/__snapshots__/variants.spec.ts.snap index d8f96057..886d018d 100644 --- a/tools/api-docs-generator-test-snapshots/test/variants/__snapshots__/variants.spec.ts.snap +++ b/tools/api-docs-generator-test-snapshots/test/variants/__snapshots__/variants.spec.ts.snap @@ -127,13 +127,13 @@ export class ExampleClass { private constructor(); /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ propertyFunctionThatReturnsVariant: (arg0: number) => number | string; /** * @remarks - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * */ propertyFunctionThatReturnsVariantWithClosureThatReturnsVariant: ( @@ -141,13 +141,13 @@ export class ExampleClass { ) => (arg0: number) => (number | string) | string; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ exampleMethod(arg1: (arg0: number) => (arg0: number) => (number | string) | string, arg2: number): void; /** * @remarks - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * */ methodWithVariantOfArrays(arrays: number[] | string[]): boolean; diff --git a/tools/markup-generators-plugin/templates/tsdef/function.mustache b/tools/markup-generators-plugin/templates/tsdef/function.mustache index 08b0ec84..64b8bc70 100644 --- a/tools/markup-generators-plugin/templates/tsdef/function.mustache +++ b/tools/markup-generators-plugin/templates/tsdef/function.mustache @@ -24,11 +24,11 @@ * {{/function_description_ts.length}} {{#call_disallowed_in_restricted_execution}} - * This function can't be called in restricted-execution mode. + * @privilege no-restricted-execution - This function can't be called in restricted-execution mode. * {{/call_disallowed_in_restricted_execution}} {{#call_allowed_in_early_execution}} - * This function can be called in early-execution mode. + * @privilege early-execution-allowed - This function can be called in early-execution mode. * {{/call_allowed_in_early_execution}} {{/ts_has_remarks}} diff --git a/tools/markup-generators-plugin/templates/tsdef/property.mustache b/tools/markup-generators-plugin/templates/tsdef/property.mustache index c2772080..f989a4c9 100644 --- a/tools/markup-generators-plugin/templates/tsdef/property.mustache +++ b/tools/markup-generators-plugin/templates/tsdef/property.mustache @@ -29,33 +29,33 @@ {{/has_closure_privilege_type_comments}} {{#set_disallowed_in_restricted_execution}} {{#get_disallowed_in_restricted_execution}} - * This property can't be used in restricted-execution mode. + * @privilege restricted-execution-unusable - This property can't be used in restricted-execution mode. * {{/get_disallowed_in_restricted_execution}} {{^get_disallowed_in_restricted_execution}} - * This property can't be edited in restricted-execution mode. + * @privilege restricted-execution-read-only - This property can't be edited in restricted-execution mode. * {{/get_disallowed_in_restricted_execution}} {{/set_disallowed_in_restricted_execution}} {{^set_disallowed_in_restricted_execution}} {{#get_disallowed_in_restricted_execution}} - * This property can't be read in restricted-execution mode. + * @privilege restricted-execution-non-readable - This property can't be read in restricted-execution mode. * {{/get_disallowed_in_restricted_execution}} {{/set_disallowed_in_restricted_execution}} {{#set_allowed_in_early_execution}} {{#get_allowed_in_early_execution}} - * This property can be used in early-execution mode. + * @privilege early-execution-usable - This property can be used in early-execution mode. * {{/get_allowed_in_early_execution}} {{^get_allowed_in_early_execution}} - * This property can be edited in early-execution mode. + * @privilege early-execution-editable - This property can be edited in early-execution mode. * {{/get_allowed_in_early_execution}} {{/set_allowed_in_early_execution}} {{^set_allowed_in_early_execution}} {{#get_allowed_in_early_execution}} - * This property can be read in early-execution mode. + * @privilege early-execution-readable - This property can be read in early-execution mode. * {{/get_allowed_in_early_execution}} {{/set_allowed_in_early_execution}}