@microsoft/api-extractor
Version:
Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups
23 lines • 914 B
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/**
* Keeps track of a directed graph traversal that needs to detect cycles.
*/
export var VisitorState;
(function (VisitorState) {
/**
* We have not visited the node yet.
*/
VisitorState[VisitorState["Unvisited"] = 0] = "Unvisited";
/**
* We have visited the node, but have not finished traversing its references yet.
* If we reach a node that is already in the `Visiting` state, this means we have
* encountered a cyclic reference.
*/
VisitorState[VisitorState["Visiting"] = 1] = "Visiting";
/**
* We are finished vising the node and all its references.
*/
VisitorState[VisitorState["Visited"] = 2] = "Visited";
})(VisitorState || (VisitorState = {}));
//# sourceMappingURL=VisitorState.js.map