mirror of
https://github.com/google/blockly.git
synced 2026-01-18 06:17:12 +01:00
feat!: delete angle, colour, and multiline input fields and blocks (#7932)
* chore: delete mocha tests for angle field * feat! : delete angle field * chore(tests): delete colour tests from generator tests and golden files * chore: delete colour blocks and associated generators * chore: remove colour blocks from playgrounds * chore: delete mocha tests for colour fields * chore: fix incorrect comment * chore: delete colour field from core * chore: delete multiline input tests from generators tests and golden files * chore: delete multiline text block and associated generators * chore: remove multiline text block from playgrounds * chore: delete mocha tests for multiline input field * chore: delete multiline input field from core
This commit is contained in:
@@ -26,16 +26,6 @@ export function text(
|
||||
return [code, Order.ATOMIC];
|
||||
}
|
||||
|
||||
export function text_multiline(
|
||||
block: Block,
|
||||
generator: PythonGenerator,
|
||||
): [string, Order] {
|
||||
// Text value.
|
||||
const code = generator.multiline_quote_(block.getFieldValue('TEXT'));
|
||||
const order = code.indexOf('+') !== -1 ? Order.ADDITIVE : Order.ATOMIC;
|
||||
return [code, order];
|
||||
}
|
||||
|
||||
/**
|
||||
* Regular expression to detect a single-quoted string literal.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user