makeDeclaration method

void makeDeclaration(
  1. String declaration
)

Create a new, empty declaration (top-level attribute category) if it does not already exist.

Implementation

void makeDeclaration(String declaration) {
	// create declaration if it does not already exist
	if (declarations[declaration] == null) {
		declarations[declaration] = {};
	}
}