mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix(generators): Improve consistency of migrated language generators (#7662)
* docs(generators): @fileoverview -> @file; delete @suppress * fix(generators): Fix return type of getAdjusted And improve its documentation too. Fix the @returns doc for PythonGenerator's getAdjustedInt but (for now) don't change the type because it does actually return numbers in some circumstances.
This commit is contained in:
committed by
GitHub
parent
ac362fd57a
commit
b198e2f4ae
@@ -318,7 +318,7 @@ export class PythonGenerator extends CodeGenerator {
|
||||
* @param atId The ID of the input block to get (and adjust) the value of.
|
||||
* @param delta Value to add.
|
||||
* @param negate Whether to negate the value.
|
||||
* @returns The adjusted value.
|
||||
* @returns The adjusted value or code that evaluates to it.
|
||||
*/
|
||||
getAdjustedInt(
|
||||
block: Block,
|
||||
|
||||
Reference in New Issue
Block a user