diff --git a/packages/constraint-solver/constraints-list.js b/packages/constraint-solver/constraints-list.js index 0772931deb..41dbcd2d21 100644 --- a/packages/constraint-solver/constraints-list.js +++ b/packages/constraint-solver/constraints-list.js @@ -6,6 +6,15 @@ var semver = Npm.require('semver'); //////////////////////////////////////////////////////////////////////////////// // A persistent data-structure that keeps references to Constraint objects // arranged by the "name" field of Constraint, exact field and version. +// +// Internal structure has the "length" field for the number of elements stored +// and the "byName" map that has the following structure: +// byName: +// - nameOfPackage: +// - exact: +// - versionString <=> exactConstraintInstance +// - inexact: +// - versionString <=> inexactConstraintInstance ConstraintSolver.ConstraintsList = function (prev) { var self = this;