NamingResolver class
Resolves naming conflicts and manages class naming conventions
This resolver ensures consistent and conflict-free naming across the generated code structure.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearRegistry(
) → void - Clears all registered names and counters
-
isValidDartName(
String name) → bool - Validates if a name follows Dart conventions
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerUsedName(
String name) → void - Registers a name as used to prevent conflicts
-
resolveClassName(
String baseName, String suffix, [bool isRoot = false]) → String - Resolves a class name ensuring uniqueness and convention compliance
-
resolveFileName(
String baseName, String suffix) → String - Resolves a file name ensuring convention compliance
-
resolveMethodName(
String baseName, [String? prefix]) → String - Resolves a method name ensuring convention compliance
-
resolveVariableName(
String baseName) → String - Resolves a variable name ensuring convention compliance
-
suggestValidName(
String invalidName) → String - Gets suggestion for fixing invalid names
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited