Angular Modernizer
    Preparing search index...

    Interface SemanticAnnotation

    Semantic meaning and purpose of a code change. Provides AI with high-level understanding of transformation intent.

    {
    intent: 'add-dependency-injection',
    description: 'Inject UserService into constructor',
    confidence: 0.95,
    relatedChanges: ['add-import', 'add-constructor-parameter']
    }
    interface SemanticAnnotation {
        angularContext?: AngularContext;
        confidence: number;
        description: string;
        intent: string;
        relatedChanges?: string[];
    }
    Index

    Properties

    angularContext?: AngularContext

    Angular-specific context for this change. Optional field for Angular transformations.

    confidence: number

    Confidence score for automatic detection (0.0 - 1.0).

    • 1.0: Definitive (explicit decorator/keyword match)
    • 0.8-0.99: High confidence (pattern match)
    • 0.5-0.79: Medium confidence (heuristic)
    • <0.5: Low confidence (guess)
    description: string

    Human-readable description of the change purpose. Should be concise (1-2 sentences) and explain WHY, not just WHAT.

    intent: string

    High-level intent of the change. Common intents:

    • add-import: New import statement
    • remove-import: Removed import
    • add-dependency-injection: Added DI constructor parameter
    • remove-dependency: Removed unused dependency
    • add-decorator: Added Angular decorator
    • modify-decorator: Changed decorator properties
    • add-lifecycle-hook: Added Angular lifecycle method
    • refactor-logic: Business logic changes
    • add-type-annotation: Added TypeScript types
    • migrate-syntax: Updated syntax (e.g., module to standalone)
    relatedChanges?: string[]

    Related changes that form a logical unit. References to other SemanticAnnotation.intent values in the same diff.

    ['add-import', 'add-type-annotation']