forked from google/blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @license | ||
* Copyright 2021 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** | ||
* @fileoverview The interface for a procedure block. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
goog.provide('Blockly.Procedures.ProcedureBlock'); | ||
|
||
/** | ||
* A procedure block interface. | ||
* @interface | ||
*/ | ||
Blockly.Procedures.ProcedureBlock = function() {}; | ||
|
||
/** | ||
* Returns the name of the procedure the procedure block calls. | ||
* @return {string} | ||
*/ | ||
Blockly.Procedures.ProcedureBlock.prototype.getProcedureCall; | ||
|
||
/** | ||
* Renames the procedure from the old name to the new name. If the procedure | ||
* block receives this and the old name matches the block's current name, it | ||
* should update itself to have the new name instead. | ||
* @param {string} oldName The old name of the procedure. | ||
* @param {string} newName The new name of hte procedure. | ||
*/ | ||
Blockly.Procedures.ProcedureBlock.prototype.renameProcedure; | ||
|
||
/** | ||
* Returns the signature of the procedure block's procedure definition. | ||
* @return {!Array} Tuple containing three elements: | ||
* - {string} the name of the defined procedure | ||
* - {!Array<string>} a list of all its arguments | ||
* - {boolean} whether it has a return value or not | ||
*/ | ||
Blockly.Procedures.ProcedureBlock.prototype.getProcedureDef; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters