Skip to content

Commit

Permalink
chore: Add docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko committed Nov 21, 2024
1 parent 33ccbdc commit deac2d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,11 @@ export class Block implements IASTNodeLocation {
return null;
}

/**
* Returns a generator that provides every field on the block.
*
* @yields A generator that can be used to iterate the fields on the block.
*/
*getFields(): Generator<Field> {
for (const input of this.inputList) {
for (const field of input.fieldRow) {
Expand Down

0 comments on commit deac2d7

Please sign in to comment.