Skip to content

Latest commit

 

History

History
103 lines (82 loc) · 9.59 KB

File metadata and controls

103 lines (82 loc) · 9.59 KB

File Map for Dart Project (Further Extended)

This document provides a comprehensive map of declarations in the additional provided Dart files, including classes, abstract classes, enums, functions/methods, and other notable declarations (e.g., exceptions, typedefs, extensions). Each file is listed with its declarations organized by category in tables for clarity. Declarations are extracted from the code structure, with methods listed under their parent classes where applicable. Private members (starting with _) are included only for significant elements like methods in classes.

1. analysis_issue.dart

Category Declarations
Classes - AnalysisIssue
Abstract Classes None
Enums - IssueSeverity (values: error, warning, info, hint)
Functions/Methods In AnalysisIssue:
- get displayMessage
- get displayMessageShort
- get isCritical
- toString() (override)
- == (Object other) (override)
- get hashCode (override)
- fromJson(Map<String, dynamic> json) (factory)
- toJson()
Other None

2. issue_categorizer.dart

Category Declarations
Classes - IssueCategorizer
Abstract Classes None
Enums None
Functions/Methods In IssueCategorizer:
- categorizeByCode(String code, String message)
- _getFlutterCategory(String code)
- _categorizeByMessage(String message)
Other Constants: _syntaxErrorCodes, _typeErrorCodes, _nullSafetyCodes, _unusedCodeCodes, _performanceCodes, _flutterCodes, _codeSmellCodes, _conventionCodes

3. issue_category.dart

Category Declarations
Classes None
Abstract Classes None
Enums - IssueCategory (many values including syntaxError, typeError, various flutter* categories, etc.)
Functions/Methods In IssueCategory:
- get displayName
- get colorHex
- get isFlutterCategory
- get isCritical
- get relatedCategories
Other None

4. source_location.dart

Category Declarations
Classes - SourceLocationIR (extends IRNode)
Abstract Classes None
Enums None
Functions/Methods In SourceLocationIR:
- get humanReadable
- get filePath
- get endLine
- get endColumn
- _countNewlines()
- get lspRange
- get rangeString
- get rangeStringShort
- fromJson(Map<String, dynamic> json) (factory)
- toJson()
- copyWith({String? file, int? line, int? column, int? offset, int? length})
- contains(SourceLocationIR other)
- distanceFrom(SourceLocationIR other)
Extension on SourceLocationIR:
- get displayString
- get errorString
- isNearby(SourceLocationIR other, {int threshold = 10})
- range(SourceLocationIR start, SourceLocationIR end)
Other None

5. issue_collector.dart

Category Declarations
Classes - IssueCollector
Abstract Classes None
Enums None
Functions/Methods In IssueCollector:
- get issues
- get duplicates
- get severityCounts
- get categoryCounts
- get total
- get totalDuplicates
- get errors
- get warnings
- get infos
- get hints
- get critical
- get flutterIssues
- add(AnalysisIssue issue)
- addAll(Iterable<AnalysisIssue> issues)
- addError(String message, String code, SourceLocationIR location, {String? suggestion, List<SourceLocationIR>? relatedLocations, String? documentationUrl})
- addWarning(String message, String code, SourceLocationIR location, {String? suggestion, List<SourceLocationIR>? relatedLocations, String? documentationUrl})
- addInfo(String message, String code, SourceLocationIR location, {String? suggestion, List<SourceLocationIR>? relatedLocations, String? documentationUrl})
- addHint(String message, String code, SourceLocationIR location, {String? suggestion, List<SourceLocationIR>? relatedLocations, String? documentationUrl})
- getIssuesByCategory(IssueCategory category)
- getIssuesBySeverity(IssueSeverity severity)
- getIssuesByFile(String filePath)
- getIssuesByCode(String code)
- sort({bool bySeverity = true, bool byCategory = false})
- clear()
- merge(IssueCollector other)
- deduplicate()
- getStatistics()
- toJson()
- generateReport()
Other None

6. expression_ir.dart

Category Declarations
Classes - ExpressionIR (extends IRNode)
- LiteralExpressionIR (extends ExpressionIR)
- IdentifierExpressionIR (extends ExpressionIR)
- PropertyAccessExpressionIR (extends ExpressionIR)
- IndexAccessExpressionIR (extends ExpressionIR)
- UnaryExpressionIR (extends ExpressionIR)
- CastExpressionIR (extends ExpressionIR)
Abstract Classes None
Enums - LiteralType (values: integer, doubleValue, stringValue, booleanValue, nullValue, listValue, mapValue, setValue)
Functions/Methods In ExpressionIR:
- toShortString()
- contentEquals(IRNode other) (override)
- toJson()
- fromJson(Map<String, dynamic> json) (factory)
In LiteralExpressionIR:
- toShortString() (override)
- toJson() (override)
In IdentifierExpressionIR:
- toShortString() (override)
- toJson() (override)
In PropertyAccessExpressionIR:
- toShortString() (override)
- toJson() (override)
In IndexAccessExpressionIR:
- toShortString() (override)
- toJson() (override)
In UnaryExpressionIR:
- toShortString() (override)
- toJson() (override)
In CastExpressionIR:
- toShortString() (override)
- toJson() (override)
Other None

7. ir_node.dart

Category Declarations
Classes - IRNode
Abstract Classes None
Enums None
Functions/Methods In IRNode:
- get debugName
- toShortString()
- toString() (override)
- contentEquals(IRNode other)
In WidgetIR (extends IRNode):
- toShortString() (override)
- contentEquals(IRNode other) (override)
- get documentation
Other None

8. type_ir.dart

Category Declarations
Classes - TypeIR (extends IRNode)
- GenericTypeIR (extends TypeIR)
- TypeParameterIR
- DynamicTypeIR (extends TypeIR)
- VoidTypeIR (extends TypeIR)
- NeverTypeIR (extends TypeIR)
Abstract Classes None
Enums None
Functions/Methods In TypeIR:
- displayName()
- unwrapNullable()
- isAssignableTo(TypeIR other)
- isSubtypeOf(TypeIR other)
- contentEquals(IRNode other) (override)
- toShortString() (override)
- fromJson(Map<String, dynamic> json) (factory)
In GenericTypeIR:
- displayName() (override)
- fromJson(Map<String, dynamic> json) (factory)
- toJson() (override)
In TypeParameterIR:
- fromJson(Map<String, dynamic> json) (factory)
- == (Object other) (override)
- toJson()
In DynamicTypeIR:
- get isBuiltIn (override)
- get isGeneric (override)
- displayName() (override)
In VoidTypeIR:
- get isBuiltIn (override)
- get isGeneric (override)
- displayName() (override)
In NeverTypeIR:
- get isBuiltIn (override)
- get isGeneric (override)
- displayName() (override)
Other None

9. statement_ir.dart

Category Declarations
Classes - StatementIR (extends IRNode)
- ExpressionStmt (extends StatementIR)
- VariableDeclarationStmt (extends StatementIR)
- ReturnStmt (extends StatementIR)
Abstract Classes None
Enums None
Functions/Methods In ExpressionStmt:
- toShortString() (override)
In VariableDeclarationStmt:
- toShortString() (override)
In ReturnStmt:
- toShortString() (override)
Other None

10. widget_classification.dart

Category Declarations
Classes - WidgetDecl (extends ClassDecl)
- WidgetProperty
- WidgetPropertyAnalysis
Abstract Classes None
Enums - WidgetType (values: stateless, stateful, inherited, stateClass, custom)
- WidgetCategory (values: layout, display, input, navigation, scrollable, async, animation, gesture, scaffold, other)
- PerformanceProfile (values: lightweight, moderate, expensive, veryExpensive)
- ChildHandling (values: noChildren, singleChild, multipleChildren)
Functions/Methods In WidgetDecl:
- get isFlutterCore
- get hasBuildMethod
- get hasStateClass
- get hasKeyProperty
- get commonProperties
- get performanceProfile
- get rebuildsFrequently
- get childHandling
- toString() (override)
- fromClassDecl(ClassDecl classDecl, BuildMethodDecl? buildMethod) (factory)
In WidgetProperty:
- toString() (override)
In WidgetPropertyAnalysis:
- toString() (override)
Other Static methods in enclosing class: _determineWidgetType(ClassDecl classDecl), _determineWidgetCategory(String widgetName), _determineChildHandling(String widgetName), _determinePerformanceProfile(ClassDecl classDecl, BuildMethodDecl? buildMethod), _predictRebuildsFrequently(String widgetName), _getCommonProperties(String widgetName)