isEmpty method
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;
}
Whether the main function and any potential custom functions are all empty, i.e., they do not contain any statements.
bool isEmpty() {
return mainFunction.statements.isEmpty && customFunctions.isEmpty;
}