PubspecParser class

Parses a pubspec.yaml file and resolves dependency versions from the adjacent pubspec.lock.

Lock-file resolution is preferred over raw constraint strings because it captures the exact version that will be used in a dart pub get, making risk scoring accurate for the installed dependency tree.

Constructors

PubspecParser()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String filePath) Future<PubspecInfo>
Parses the pubspec.yaml at filePath and returns a PubspecInfo.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited