mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
fix(blocks): Mark previously-@private methods @internal (#7194)
Where certain block mixin methods had been marked @private, and these annotations had been deleted while migrating the containing files to TypeScript, mark those methods as @internal.
This commit is contained in:
committed by
GitHub
parent
5ee9003044
commit
ea74772e30
@@ -505,6 +505,8 @@ const CONTROLS_IF_MUTATOR_MIXIN = {
|
||||
},
|
||||
/**
|
||||
* Modify this block to have the correct number of inputs.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
updateShape_: function (this: IfBlock) {
|
||||
// Delete everything.
|
||||
|
||||
@@ -297,6 +297,7 @@ const GET_SUBSTRING_BLOCK = {
|
||||
* Create or delete an input for a numeric index.
|
||||
* This block has two such inputs, independent of each other.
|
||||
*
|
||||
* @internal
|
||||
* @param n Which input to modify (either 1 or 2).
|
||||
* @param isAt True if the input includes a value connection, false otherwise.
|
||||
*/
|
||||
@@ -445,6 +446,7 @@ const PROMPT_COMMON = {
|
||||
/**
|
||||
* Modify this block to have the correct output type.
|
||||
*
|
||||
* @internal
|
||||
* @param newOp The new output type. Should be either 'TEXT' or 'NUMBER'.
|
||||
*/
|
||||
updateType_: function (this: PromptCommonBlock, newOp: string) {
|
||||
@@ -857,6 +859,7 @@ const JOIN_MUTATOR_MIXIN = {
|
||||
},
|
||||
/**
|
||||
* Modify this block to have the correct number of inputs.
|
||||
*
|
||||
*/
|
||||
updateShape_: function (this: JoinMutatorBlock) {
|
||||
if (this.itemCount_ && this.getInput('EMPTY')) {
|
||||
@@ -955,6 +958,7 @@ const CHARAT_MUTATOR_MIXIN = {
|
||||
/**
|
||||
* Create or delete an input for the numeric index.
|
||||
*
|
||||
* @internal
|
||||
* @param isAt True if the input should exist.
|
||||
*/
|
||||
updateAt_: function (this: CharAtBlock, isAt: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user