getClassName function

String getClassName(
  1. ClassDeclaration node
)

Gets the name of the class

Implementation

String getClassName(ClassDeclaration node) {
  return node.declaredFragment?.name ?? node.name.lexeme;
}