code: public void checkDeclaration(Decl decl) {
  		if (decl instanceof Decl.Unit) {
  			checkUnit((Decl.Unit) decl);
  		} else if (decl instanceof Decl.Import) {
  			// Can ignore
  		} else if (decl instanceof Decl.StaticVariable) {
  			checkStaticVariableDeclaration((Decl.StaticVariable) decl);
  		} else if (decl instanceof Decl.Type) {
  			checkTypeDeclaration((Decl.Type) decl);
  		} else if (decl instanceof Decl.FunctionOrMethod) {
  			checkFunctionOrMethodDeclaration((Decl.FunctionOrMethod) decl);
  		} else {
  			checkPropertyDeclaration((Decl.Property) decl);
  		}
  	}
docs: =========================================================================