mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 22:10:15 +03:00
Make Random.Seed private. Remove unused TEXT_ONLY (#8783)
Random.Seed doesn't work in the GUI and the TEXT_ONLY tag doesn't do anything so it was incorrectly showing up in the component browser. This MR makes Random.Seed private to hide it from the GUI and completely removes the TEXT_ONLY tag which is unused and unimplemented.
This commit is contained in:
parent
a764618bd9
commit
ac0d4c9f5f
@ -5,7 +5,7 @@ import { computed, ref, watch } from 'vue'
|
||||
|
||||
const props = defineProps<{ tags: Doc.Section.Tag[]; groupColor: string }>()
|
||||
|
||||
const skipTags: Doc.Tag[] = ['Icon', 'TextOnly']
|
||||
const skipTags: Doc.Tag[] = ['Icon']
|
||||
const tags = computed<Doc.Section.Tag[]>(() => {
|
||||
return props.tags.flatMap((tag) => {
|
||||
if (tag.tag === 'Alias') {
|
||||
|
@ -17,7 +17,6 @@ export namespace Doc {
|
||||
| 'Modified'
|
||||
| 'Private'
|
||||
| 'Removed'
|
||||
| 'TextOnly'
|
||||
| 'Unstable'
|
||||
| 'Upcoming'
|
||||
export type Mark = 'Important' | 'Info' | 'Example'
|
||||
|
@ -53,7 +53,7 @@
|
||||
"selfType": "Standard.Base.Data",
|
||||
"returnType": "Standard.Base.Any.Any",
|
||||
"isStatic": true,
|
||||
"documentation": " ADDED 0.1\nADVANCED\nALIAS alias1, alias2\nDEPRECATED\nICON select_row\nGROUP Output\nMODIFIED 0.9\nREMOVED 1.2\nTEXT_ONLY\nUNSTABLE\nUPCOMING\nThis is a test entry that has every tag set, except for `PRIVATE` (as it would hide the entry from the documentation).",
|
||||
"documentation": " ADDED 0.1\nADVANCED\nALIAS alias1, alias2\nDEPRECATED\nICON select_row\nGROUP Output\nMODIFIED 0.9\nREMOVED 1.2\nUNSTABLE\nUPCOMING\nThis is a test entry that has every tag set, except for `PRIVATE` (as it would hide the entry from the documentation).",
|
||||
"annotations": ["format"]
|
||||
},
|
||||
{
|
||||
|
@ -45,8 +45,8 @@ type Random
|
||||
new_generator : Integer | Nothing -> Random_Generator
|
||||
new_generator seed:(Integer | Nothing)=Nothing = Random_Generator.new seed
|
||||
|
||||
## GROUP Random
|
||||
TEXT_ONLY
|
||||
## PRIVATE
|
||||
GROUP Random
|
||||
|
||||
Set the seed of the default `Random_Generator` instance.
|
||||
|
||||
|
@ -120,7 +120,6 @@ noted. The documentation syntax supports the following tags:
|
||||
- `PRIVATE`: Used to describe constructs that are private in the language.
|
||||
- `REMOVED`: Used to describe constructs that have been removed and are no
|
||||
longer functional.
|
||||
- `TEXT_ONLY`: Items that do not apply to the graphical mode.
|
||||
- `UNSTABLE`: Used for items that are not yet considered stable.
|
||||
- `UPCOMING`: Used to describe constructs that will be added in future versions
|
||||
of the library.
|
||||
|
@ -68,7 +68,6 @@ pub enum Tag {
|
||||
Modified,
|
||||
Private,
|
||||
Removed,
|
||||
TextOnly,
|
||||
Unstable,
|
||||
Upcoming,
|
||||
}
|
||||
@ -98,7 +97,6 @@ impl Tag {
|
||||
"MODIFIED" => Some(Modified),
|
||||
"PRIVATE" => Some(Private),
|
||||
"REMOVED" => Some(Removed),
|
||||
"TEXT_ONLY" => Some(TextOnly),
|
||||
"UNSTABLE" => Some(Unstable),
|
||||
"UPCOMING" => Some(Upcoming),
|
||||
_ => None,
|
||||
@ -117,7 +115,6 @@ impl Tag {
|
||||
Tag::Modified => "MODIFIED",
|
||||
Tag::Private => "PRIVATE",
|
||||
Tag::Removed => "REMOVED",
|
||||
Tag::TextOnly => "TEXT_ONLY",
|
||||
Tag::Unstable => "UNSTABLE",
|
||||
Tag::Upcoming => "UPCOMING",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user