getDeclaration method

String? getDeclaration(
  1. String declaration,
  2. String name
)

Get an attribute from a declaration by name.

Implementation

String? getDeclaration(String declaration, String name) {
	// get declaration then name, returns null if either don't exist
	return declarations[declaration]?[name];
}