Skip to content

Lint request: avoid dynamic dispatch #57971

Closed
@srawlins

Description

@srawlins

Dynamic dispatch has several costs: it can be expensive, and can prevent tree-shaking.

The lint rule would report any methods being called on dynamic (other than methods on Object?).

Examples:

var a;
a.length;

getLength(a) {
   print(a.length);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions