LanguageConfig class
Configuration for a specific language/project type
Constructors
-
LanguageConfig({required ProjectType type, required List<
String> extensions, required String commentStyleName, List<String> defaultIgnorePatterns = const [], List<String> defaultSourceDirs = const ['.']}) -
const
Properties
- commentStyle → CommentStyle
-
Get the CommentStyle enum value
no setter
- commentStyleName → String
-
Comment style name (serializable version of CommentStyle)
final
-
defaultIgnorePatterns
→ List<
String> -
Default ignore patterns for this language
final
-
defaultSourceDirs
→ List<
String> -
Default source directories to scan
final
-
extensions
→ List<
String> -
File extensions to include (e.g.,
'.dart', '.py')final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ProjectType
-
Project type
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
configs
→ Map<
ProjectType, LanguageConfig> -
All predefined language configurations
final
Static Methods
-
detectProjectType(
String directory) → ProjectType - Auto-detect project type from directory
-
forType(
ProjectType type) → LanguageConfig - Get language config for a project type