pushGroup method
Pushes a group onto the declaration stack.
Implementation
void pushGroup(String name, {required String? packagePath}) {
final resolvedPackagePath = packagePath ?? currentPackagePath;
_declarationStack.add(
_DeclaredGroup(name: name, packagePath: resolvedPackagePath),
);
_scopeForPath(
currentPath,
packagePath: resolvedPackagePath,
);
}