isEmpty method

bool isEmpty()

Whether the main function and any potential custom functions are all empty, i.e., they do not contain any statements.

Implementation

bool isEmpty() {
  return mainFunction.statements.isEmpty && customFunctions.isEmpty;
}