@lowgular/code-graph 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/code-graph/src/main.js +50 -0
- package/libs/cli/code-graph/src/index.js +39 -0
- package/libs/cli/code-graph/src/lib/class-declarations/abstractions/service.js +72 -0
- package/libs/cli/code-graph/src/lib/class-declarations/abstractions/service.stateful.js +68 -0
- package/libs/cli/code-graph/src/lib/class-declarations/class-declarations.doc.js +147 -0
- package/libs/cli/code-graph/src/lib/class-declarations/class-declarations.graph.js +55 -0
- package/libs/cli/code-graph/src/lib/class-declarations/index.js +27 -0
- package/libs/cli/code-graph/src/lib/code.graph.factory.js +63 -0
- package/libs/cli/code-graph/src/lib/code.graph.js +62 -0
- package/libs/cli/code-graph/src/lib/core/core.js +58 -0
- package/libs/cli/code-graph/src/lib/core.js +85 -0
- package/libs/cli/code-graph/src/lib/decorators/index.js +36 -0
- package/libs/cli/code-graph/src/lib/docs/index.js +21 -0
- package/libs/cli/code-graph/src/lib/docs/specs.js +36 -0
- package/libs/cli/code-graph/src/lib/expressions/call-expressions.graph.js +28 -0
- package/libs/cli/code-graph/src/lib/fixtures/reactive-event-bus/src/app/examples.event-bus.js +53 -0
- package/libs/cli/code-graph/src/lib/method-declarations/index.js +23 -0
- package/libs/cli/code-graph/src/lib/method-declarations/method-declarations.doc.js +106 -0
- package/libs/cli/code-graph/src/lib/method-declarations/method-declarations.graph.js +56 -0
- package/libs/cli/code-graph/src/lib/parameters/index.js +42 -0
- package/libs/cli/code-graph/src/lib/property-declarations/abstractions/reactive-state.evals.js +139 -0
- package/libs/cli/code-graph/src/lib/property-declarations/abstractions/reactive-state.js +104 -0
- package/libs/cli/code-graph/src/lib/property-declarations/index.js +25 -0
- package/libs/cli/code-graph/src/lib/property-declarations/property-declarations.doc.js +74 -0
- package/libs/cli/code-graph/src/lib/property-declarations/property-declarations.graph.js +43 -0
- package/libs/cli/code-graph/src/lib/tools/index.js +34 -0
- package/libs/cli/code-graph/src/lib/tools/match-code-graph.tool.js +64 -0
- package/libs/cli/code-graph/src/lib/types/index.js +99 -0
- package/libs/cli/code-graph/src/lib/v2/extractors/extractor.doc.js +345 -0
- package/libs/cli/code-graph/src/lib/v2/extractors/extractor.js +52 -0
- package/libs/cli/code-graph/src/lib/v2/extractors/index.js +23 -0
- package/libs/cli/code-graph/src/lib/v2/graph-builder/code-graph.builder.js +76 -0
- package/libs/cli/code-graph/src/lib/v2/graph-builder/index.js +21 -0
- package/libs/cli/code-graph/src/lib/v2/graph-builder/node.processor.js +48 -0
- package/libs/cli/code-graph/src/lib/v2/graph-builder/relationship.processor.js +79 -0
- package/libs/cli/code-graph/src/lib/v2/graph-builder/type.processor.js +45 -0
- package/libs/cli/code-graph/src/lib/v2/index.js +37 -0
- package/libs/cli/code-graph/src/lib/v2/tools/build-code-graph.doc.js +220 -0
- package/libs/cli/code-graph/src/lib/v2/tools/build-code-graph.tool.js +42 -0
- package/libs/cli/cypher/src/index.js +25 -0
- package/libs/cli/cypher/src/lib/docs/features/advanced-optional-match.feature.js +277 -0
- package/libs/cli/cypher/src/lib/docs/features/anonymous-relationship.feature.js +69 -0
- package/libs/cli/cypher/src/lib/docs/features/anonymous-variable-length.feature.js +105 -0
- package/libs/cli/cypher/src/lib/docs/features/basic-filtering.feature.js +70 -0
- package/libs/cli/cypher/src/lib/docs/features/basic-optional-match.feature.js +99 -0
- package/libs/cli/cypher/src/lib/docs/features/basic-relationship.feature.js +125 -0
- package/libs/cli/cypher/src/lib/docs/features/index.js +51 -0
- package/libs/cli/cypher/src/lib/docs/features/limit.feature.js +50 -0
- package/libs/cli/cypher/src/lib/docs/features/match-nodes.feature.js +106 -0
- package/libs/cli/cypher/src/lib/docs/features/multiple-relationship-types.feature.js +105 -0
- package/libs/cli/cypher/src/lib/docs/features/order-by.feature.js +143 -0
- package/libs/cli/cypher/src/lib/docs/features/property-matching.feature.js +152 -0
- package/libs/cli/cypher/src/lib/docs/features/relationship-without-variable.feature.js +48 -0
- package/libs/cli/cypher/src/lib/docs/features/return-statement.feature.js +65 -0
- package/libs/cli/cypher/src/lib/docs/features/unidirected-relationship.feature.js +82 -0
- package/libs/cli/cypher/src/lib/docs/features/variable-length-path.feature.js +136 -0
- package/libs/cli/cypher/src/lib/docs/features/where-conditional.feature.js +187 -0
- package/libs/cli/cypher/src/lib/docs/features/where-operators.feature.js +302 -0
- package/libs/cli/cypher/src/lib/docs/prompts.js +36 -0
- package/libs/cli/cypher/src/lib/docs/specs.js +181 -0
- package/libs/cli/cypher/src/lib/executor/condition-evaluator.js +158 -0
- package/libs/cli/cypher/src/lib/executor/executor.js +83 -0
- package/libs/cli/cypher/src/lib/executor/graph.js +15 -0
- package/libs/cli/cypher/src/lib/executor/match-engine.js +153 -0
- package/libs/cli/cypher/src/lib/executor/pattern-matcher.js +109 -0
- package/libs/cli/cypher/src/lib/executor/relationship-navigator.js +64 -0
- package/libs/cli/cypher/src/lib/executor/result-formatter.js +143 -0
- package/libs/cli/cypher/src/lib/executor/traverse-engine.js +164 -0
- package/libs/cli/cypher/src/lib/executor/utils.js +37 -0
- package/libs/cli/cypher/src/lib/graph.stub.js +63 -0
- package/libs/cli/cypher/src/lib/index.js +74 -0
- package/libs/cli/cypher/src/lib/lexer.js +398 -0
- package/libs/cli/cypher/src/lib/parser.js +602 -0
- package/libs/cli/cypher/src/lib/validator/query-validator.js +95 -0
- package/libs/cli/cypher/src/lib/validator/supported-features.config.js +111 -0
- package/libs/cli/cypher/src/lib/validator/unsupported-features.config.js +150 -0
- package/libs/cli/shared/src/index.js +53 -0
- package/libs/cli/shared/src/lib/admin-token.js +121 -0
- package/libs/cli/shared/src/lib/config.js +49 -0
- package/libs/cli/shared/src/lib/consts.js +57 -0
- package/libs/cli/shared/src/lib/core.js +46 -0
- package/libs/cli/shared/src/lib/infrastructure/cli.js +47 -0
- package/libs/cli/shared/src/lib/infrastructure/config.js +47 -0
- package/libs/cli/shared/src/lib/infrastructure/config.reporitory.js +51 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/console-formatter.js +96 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/index.js +41 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/json-formatter.js +64 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/markdown-formatter.js +120 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/types.js +15 -0
- package/libs/cli/shared/src/lib/infrastructure/formatters/utils.js +72 -0
- package/libs/cli/shared/src/lib/infrastructure/git.js +147 -0
- package/libs/cli/shared/src/lib/infrastructure/http.js +257 -0
- package/libs/cli/shared/src/lib/infrastructure/markdown.js +95 -0
- package/libs/cli/shared/src/lib/infrastructure/transformers/embeddings.js +88 -0
- package/libs/cli/shared/src/lib/infrastructure/transformers/index.js +25 -0
- package/libs/cli/shared/src/lib/infrastructure/transformers/rag-eval.js +154 -0
- package/libs/cli/shared/src/lib/infrastructure/transformers/similarity.js +210 -0
- package/libs/cli/shared/src/lib/infrastructure/workspace.js +297 -0
- package/libs/cli/shared/src/lib/infrastructure/yaml.js +237 -0
- package/libs/cli/shared/src/lib/lowgular.config.js +120 -0
- package/libs/cli/shared/src/lib/token.js +135 -0
- package/libs/cli/shared/src/lib/utils/solution.util.js +35 -0
- package/libs/cli/shared/src/lib/utils/utils.js +89 -0
- package/libs/cli/typescript/src/index.js +21 -0
- package/libs/cli/typescript/src/lib/base/index.js +23 -0
- package/libs/cli/typescript/src/lib/base/nameable.js +34 -0
- package/libs/cli/typescript/src/lib/base/nodeable.js +36 -0
- package/libs/cli/typescript/src/lib/class.implementation.js +52 -0
- package/libs/cli/typescript/src/lib/core/declaration.registry.js +107 -0
- package/libs/cli/typescript/src/lib/core/design-pattern.js +55 -0
- package/libs/cli/typescript/src/lib/core/index.js +35 -0
- package/libs/cli/typescript/src/lib/core/navigable-declaration.js +69 -0
- package/libs/cli/typescript/src/lib/core/program-context.js +71 -0
- package/libs/cli/typescript/src/lib/core/syntax-kind.utils.js +40 -0
- package/libs/cli/typescript/src/lib/core/type.js +374 -0
- package/libs/cli/typescript/src/lib/declaration.abstraction.js +90 -0
- package/libs/cli/typescript/src/lib/decorator.implementation.js +35 -0
- package/libs/cli/typescript/src/lib/enum.implementation.js +35 -0
- package/libs/cli/typescript/src/lib/function-declaration.implementation.js +35 -0
- package/libs/cli/typescript/src/lib/index.js +57 -0
- package/libs/cli/typescript/src/lib/interface.implementation.js +51 -0
- package/libs/cli/typescript/src/lib/members/method-abstraction.resolver.js +90 -0
- package/libs/cli/typescript/src/lib/members/method-declaration.implementation.js +44 -0
- package/libs/cli/typescript/src/lib/members/method-signature.implementation.js +46 -0
- package/libs/cli/typescript/src/lib/members/method.util.js +32 -0
- package/libs/cli/typescript/src/lib/members/parameter.implementation.js +38 -0
- package/libs/cli/typescript/src/lib/members/property-declaration.implementation.js +64 -0
- package/libs/cli/typescript/src/lib/members/property-signature.implementation.js +34 -0
- package/libs/cli/typescript/src/lib/members/property.util.js +61 -0
- package/libs/cli/typescript/src/lib/members/statements/expressions/binary-expression.implementation.js +42 -0
- package/libs/cli/typescript/src/lib/members/statements/expressions/call-expression.implementation.js +114 -0
- package/libs/cli/typescript/src/lib/members/statements/expressions/expression.abstraction.js +188 -0
- package/libs/cli/typescript/src/lib/members/statements/expressions/property-access-expression.implementation.js +35 -0
- package/libs/cli/typescript/src/lib/members/statements/expressions/unary-expression.implementation.js +51 -0
- package/libs/cli/typescript/src/lib/members/statements/statement.implementation.js +49 -0
- package/libs/cli/typescript/src/lib/members/statements/utils.js +51 -0
- package/libs/cli/typescript/src/lib/plugins/built-in.plugin.js +258 -0
- package/libs/cli/typescript/src/lib/plugins/plugin.interface.js +15 -0
- package/libs/cli/typescript/src/lib/plugins/rxjs.plugin.js +228 -0
- package/libs/cli/typescript/src/lib/plugins/signal.plugin.js +126 -0
- package/libs/cli/typescript/src/lib/plugins/stubs.js +66 -0
- package/libs/cli/typescript/src/lib/type-alias.implementation.js +72 -0
- package/libs/cli/typescript/src/lib/utils.js +39 -0
- package/libs/cli/typescript/src/lib/variable-declaration.implementation.js +35 -0
- package/libs/core/codegular/src/index.js +21 -0
- package/libs/core/codegular/src/lib/index.js +29 -0
- package/libs/core/codegular/src/lib/node.js +112 -0
- package/libs/core/codegular/src/lib/program.js +92 -0
- package/libs/core/codegular/src/lib/string.js +168 -0
- package/libs/core/codegular/src/lib/type-checker.js +170 -0
- package/libs/core/codegular/src/lib/utils.js +347 -0
- package/main.js +43 -0
- package/package.json +12 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var core_exports = {};
|
|
19
|
+
__export(core_exports, {
|
|
20
|
+
extractArgumentNames: () => extractArgumentNames,
|
|
21
|
+
extractMethodName: () => extractMethodName,
|
|
22
|
+
extractTargetName: () => extractTargetName,
|
|
23
|
+
generateFileRootNodeId: () => generateFileRootNodeId,
|
|
24
|
+
generateIdByRange: () => generateIdByRange,
|
|
25
|
+
mergeCodeGraphs: () => mergeCodeGraphs
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(core_exports);
|
|
28
|
+
const ts = require("typescript");
|
|
29
|
+
const extractTargetName = (snippet) => {
|
|
30
|
+
const thisMatch = snippet.match(/this\.([a-zA-Z_$][a-zA-Z0-9_$]*)\./);
|
|
31
|
+
if (thisMatch) {
|
|
32
|
+
return thisMatch[1];
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
};
|
|
36
|
+
const extractMethodName = (snippet) => {
|
|
37
|
+
const methodMatch = snippet.match(/\.([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/);
|
|
38
|
+
if (methodMatch) {
|
|
39
|
+
return methodMatch[1];
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
const extractArgumentNames = (snippet) => {
|
|
44
|
+
const lastOpenParen = snippet.lastIndexOf("(");
|
|
45
|
+
if (lastOpenParen === -1) {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
const afterParen = snippet.substring(lastOpenParen + 1);
|
|
49
|
+
const closeParen = afterParen.indexOf(")");
|
|
50
|
+
if (closeParen === -1) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
const argsString = afterParen.substring(0, closeParen).trim();
|
|
54
|
+
if (!argsString) {
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
return argsString.split(",").map((arg) => arg.trim()).map((arg) => {
|
|
58
|
+
const identifierMatch = arg.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/);
|
|
59
|
+
return identifierMatch ? identifierMatch[1] : null;
|
|
60
|
+
}).filter((name) => name !== null);
|
|
61
|
+
};
|
|
62
|
+
const generateIdByRange = (prefix, node) => {
|
|
63
|
+
const range = node.range;
|
|
64
|
+
return `${prefix}.s${range.start.line}-${range.start.character}e${range.end.line}-${range.end.character}`;
|
|
65
|
+
};
|
|
66
|
+
const mergeCodeGraphs = (codeGraph, classGraph) => {
|
|
67
|
+
Object.assign(codeGraph.nodesById, classGraph.nodesById);
|
|
68
|
+
Object.values(classGraph.edgesBySource).flat().forEach((edge) => {
|
|
69
|
+
if (!codeGraph.edgesBySource[edge.source]) {
|
|
70
|
+
codeGraph.edgesBySource[edge.source] = [];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const generateFileRootNodeId = (node) => {
|
|
75
|
+
return node.filePath + "@" + node.name;
|
|
76
|
+
};
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
extractArgumentNames,
|
|
80
|
+
extractMethodName,
|
|
81
|
+
extractTargetName,
|
|
82
|
+
generateFileRootNodeId,
|
|
83
|
+
generateIdByRange,
|
|
84
|
+
mergeCodeGraphs
|
|
85
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var decorators_exports = {};
|
|
19
|
+
__export(decorators_exports, {
|
|
20
|
+
DECORATOR_DOC: () => DECORATOR_DOC
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(decorators_exports);
|
|
23
|
+
const DECORATOR_DOC = {
|
|
24
|
+
id: "decorator",
|
|
25
|
+
name: "Decorator",
|
|
26
|
+
schema: {
|
|
27
|
+
name: "string"
|
|
28
|
+
},
|
|
29
|
+
relationships: {},
|
|
30
|
+
description: `The node represents TypeScript AST kind: Decorator.`,
|
|
31
|
+
examples: []
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
DECORATOR_DOC
|
|
36
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var docs_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(docs_exports);
|
|
17
|
+
__reExport(docs_exports, require("./specs"), module.exports);
|
|
18
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
19
|
+
0 && (module.exports = {
|
|
20
|
+
...require("./specs")
|
|
21
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var specs_exports = {};
|
|
19
|
+
__export(specs_exports, {
|
|
20
|
+
CODE_GRAPH_UNSUPPORTED_FEATURES: () => CODE_GRAPH_UNSUPPORTED_FEATURES
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(specs_exports);
|
|
23
|
+
const CODE_GRAPH_UNSUPPORTED_FEATURES = `
|
|
24
|
+
## Unsupported Features
|
|
25
|
+
|
|
26
|
+
Here are the unsupported nodes and relationships:
|
|
27
|
+
|
|
28
|
+
- FunctionDeclaration
|
|
29
|
+
- InterfaceDeclaration
|
|
30
|
+
- TypeAliasDeclaration
|
|
31
|
+
- TypeParameterDeclaration
|
|
32
|
+
`;
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
CODE_GRAPH_UNSUPPORTED_FEATURES
|
|
36
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var call_expressions_graph_exports = {};
|
|
19
|
+
__export(call_expressions_graph_exports, {
|
|
20
|
+
addCallExpressionNode: () => addCallExpressionNode
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(call_expressions_graph_exports);
|
|
23
|
+
const addCallExpressionNode = (classCodeGraph, parentId, callExpr, targetId, getMatchingByName) => {
|
|
24
|
+
};
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
addCallExpressionNode
|
|
28
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
19
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
20
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
21
|
+
if (decorator = decorators[i])
|
|
22
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
23
|
+
if (kind && result)
|
|
24
|
+
__defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
var examples_event_bus_exports = {};
|
|
28
|
+
__export(examples_event_bus_exports, {
|
|
29
|
+
PrimitiveEventModelEventBus: () => PrimitiveEventModelEventBus
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(examples_event_bus_exports);
|
|
32
|
+
var import_core = require("@angular/core");
|
|
33
|
+
var import_rxjs = require("rxjs");
|
|
34
|
+
let PrimitiveEventModelEventBus = class {
|
|
35
|
+
constructor() {
|
|
36
|
+
this.behaviorSubject = new import_rxjs.BehaviorSubject("");
|
|
37
|
+
}
|
|
38
|
+
publish(event) {
|
|
39
|
+
this.behaviorSubject.next(event);
|
|
40
|
+
}
|
|
41
|
+
subscribe() {
|
|
42
|
+
return this.behaviorSubject.asObservable();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
PrimitiveEventModelEventBus = __decorateClass([
|
|
46
|
+
(0, import_core.Injectable)({
|
|
47
|
+
providedIn: "root"
|
|
48
|
+
})
|
|
49
|
+
], PrimitiveEventModelEventBus);
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
PrimitiveEventModelEventBus
|
|
53
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var method_declarations_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(method_declarations_exports);
|
|
17
|
+
__reExport(method_declarations_exports, require("./method-declarations.doc"), module.exports);
|
|
18
|
+
__reExport(method_declarations_exports, require("./method-declarations.graph"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./method-declarations.doc"),
|
|
22
|
+
...require("./method-declarations.graph")
|
|
23
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var method_declarations_doc_exports = {};
|
|
19
|
+
__export(method_declarations_doc_exports, {
|
|
20
|
+
METHOD_DECLARATION_DOC: () => METHOD_DECLARATION_DOC,
|
|
21
|
+
METHOD_DECLARATION_EDGE_TYPES: () => METHOD_DECLARATION_EDGE_TYPES,
|
|
22
|
+
METHOD_DECLARATION_EXAMPLES: () => METHOD_DECLARATION_EXAMPLES
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(method_declarations_doc_exports);
|
|
25
|
+
var import_core = require("../core/core");
|
|
26
|
+
var import_types = require("../types");
|
|
27
|
+
var METHOD_DECLARATION_EDGE_TYPES = /* @__PURE__ */ ((METHOD_DECLARATION_EDGE_TYPES2) => {
|
|
28
|
+
METHOD_DECLARATION_EDGE_TYPES2["HAS_PARAMETER"] = "HAS_PARAMETER";
|
|
29
|
+
return METHOD_DECLARATION_EDGE_TYPES2;
|
|
30
|
+
})(METHOD_DECLARATION_EDGE_TYPES || {});
|
|
31
|
+
const STUB = `class Test {
|
|
32
|
+
num = 1;
|
|
33
|
+
str = 'test';
|
|
34
|
+
bool = true;
|
|
35
|
+
|
|
36
|
+
queryMethod() {
|
|
37
|
+
return this.num;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
commandMethod(param1: number) {
|
|
41
|
+
this.num = this.num + param1;
|
|
42
|
+
}
|
|
43
|
+
}`;
|
|
44
|
+
const METHOD_DECLARATION_EXAMPLES = [
|
|
45
|
+
{
|
|
46
|
+
userPrompt: "Find all method declarations",
|
|
47
|
+
given: STUB,
|
|
48
|
+
when: `MATCH (methDecl:MethodDeclaration) RETURN methDecl`,
|
|
49
|
+
then: [
|
|
50
|
+
[
|
|
51
|
+
{
|
|
52
|
+
labels: ["MethodDeclaration"],
|
|
53
|
+
name: "queryMethod"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
{
|
|
58
|
+
labels: ["MethodDeclaration"],
|
|
59
|
+
name: "commandMethod"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
userPrompt: "show me all method declarations that are parameterless",
|
|
66
|
+
given: STUB,
|
|
67
|
+
when: `MATCH (m:MethodDeclaration) OPTIONAL MATCH (m)-[:${"HAS_PARAMETER" /* HAS_PARAMETER */}]->(p:Parameter) WHERE p IS NULL RETURN m`,
|
|
68
|
+
then: [
|
|
69
|
+
[
|
|
70
|
+
{
|
|
71
|
+
labels: ["MethodDeclaration"],
|
|
72
|
+
name: "queryMethod"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
const METHOD_DECLARATION_DOC = {
|
|
79
|
+
id: "method-declaration",
|
|
80
|
+
name: "MethodDeclaration",
|
|
81
|
+
schema: {
|
|
82
|
+
...import_core.NameableSchema,
|
|
83
|
+
modifiers: "string[]",
|
|
84
|
+
body: "string"
|
|
85
|
+
},
|
|
86
|
+
relationships: {
|
|
87
|
+
["HAS_PARAMETER" /* HAS_PARAMETER */]: {
|
|
88
|
+
examples: [
|
|
89
|
+
`(m:MethodDeclaration)-[:${"HAS_PARAMETER" /* HAS_PARAMETER */}]->(p:Parameter)`
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
[import_types.TYPE_INFO_EDGE_TYPES.HAS_TYPE]: {
|
|
93
|
+
examples: [
|
|
94
|
+
`(m:MethodDeclaration)-[:${import_types.TYPE_INFO_EDGE_TYPES.HAS_TYPE}]->(t:Type)`
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
description: `The node represents TypeScript AST kind: MethodDeclaration.`,
|
|
99
|
+
examples: METHOD_DECLARATION_EXAMPLES
|
|
100
|
+
};
|
|
101
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
102
|
+
0 && (module.exports = {
|
|
103
|
+
METHOD_DECLARATION_DOC,
|
|
104
|
+
METHOD_DECLARATION_EDGE_TYPES,
|
|
105
|
+
METHOD_DECLARATION_EXAMPLES
|
|
106
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var method_declarations_graph_exports = {};
|
|
19
|
+
__export(method_declarations_graph_exports, {
|
|
20
|
+
appendClassMethodsGraph: () => appendClassMethodsGraph
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(method_declarations_graph_exports);
|
|
23
|
+
var import_class_declarations = require("../class-declarations/class-declarations.doc");
|
|
24
|
+
var import_code = require("../code.graph");
|
|
25
|
+
var import_core = require("../core/core");
|
|
26
|
+
var import_method_declarations = require("./method-declarations.doc");
|
|
27
|
+
const appendClassMethodsGraph = (classCodeGraph, classId, classImplementation) => {
|
|
28
|
+
classImplementation.methods.forEach((m) => {
|
|
29
|
+
const methodNode = (0, import_core.extendNameable)(m, {
|
|
30
|
+
modifiers: m.modifiers,
|
|
31
|
+
body: m.body
|
|
32
|
+
});
|
|
33
|
+
(0, import_code.addNode)(classCodeGraph, methodNode);
|
|
34
|
+
(0, import_code.addEdge)(classCodeGraph, {
|
|
35
|
+
source: classId,
|
|
36
|
+
target: methodNode.id,
|
|
37
|
+
type: import_class_declarations.CLASS_DECLARATION_EDGE_TYPES.HAS_METHOD
|
|
38
|
+
});
|
|
39
|
+
appendMethodParametersGraph(classCodeGraph, methodNode.id, m);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const appendMethodParametersGraph = (classCodeGraph, methodId, method) => {
|
|
43
|
+
method.parameters.forEach((p) => {
|
|
44
|
+
const node = (0, import_core.extendNameable)(p);
|
|
45
|
+
(0, import_code.addNode)(classCodeGraph, node);
|
|
46
|
+
(0, import_code.addEdge)(classCodeGraph, {
|
|
47
|
+
source: methodId,
|
|
48
|
+
target: node.id,
|
|
49
|
+
type: import_method_declarations.METHOD_DECLARATION_EDGE_TYPES.HAS_PARAMETER
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
appendClassMethodsGraph
|
|
56
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var parameters_exports = {};
|
|
19
|
+
__export(parameters_exports, {
|
|
20
|
+
PARAMETER_DOC: () => PARAMETER_DOC
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(parameters_exports);
|
|
23
|
+
var import_core = require("../core/core");
|
|
24
|
+
var import_types = require("../types");
|
|
25
|
+
const PARAMETER_DOC = {
|
|
26
|
+
id: "parameter",
|
|
27
|
+
name: "Parameter",
|
|
28
|
+
schema: {
|
|
29
|
+
...import_core.NameableSchema
|
|
30
|
+
},
|
|
31
|
+
relationships: {
|
|
32
|
+
[import_types.TYPE_INFO_EDGE_TYPES.HAS_TYPE]: {
|
|
33
|
+
examples: [`(p:Parameter)-[:${import_types.TYPE_INFO_EDGE_TYPES.HAS_TYPE}]->(t:Type)`]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
description: `The node represents TypeScript AST kind: Parameter.`,
|
|
37
|
+
examples: []
|
|
38
|
+
};
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
PARAMETER_DOC
|
|
42
|
+
});
|
package/libs/cli/code-graph/src/lib/property-declarations/abstractions/reactive-state.evals.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var reactive_state_evals_exports = {};
|
|
19
|
+
__export(reactive_state_evals_exports, {
|
|
20
|
+
DIRECT_ACCESS: () => DIRECT_ACCESS,
|
|
21
|
+
INDIRECT_ACCESS: () => INDIRECT_ACCESS,
|
|
22
|
+
INITIALIZER_AS_CALL: () => INITIALIZER_AS_CALL
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(reactive_state_evals_exports);
|
|
25
|
+
const DIRECT_ACCESS = {
|
|
26
|
+
stub: `
|
|
27
|
+
import { ReplaySubject } from "rxjs";
|
|
28
|
+
|
|
29
|
+
export class TestService {
|
|
30
|
+
private readonly reactive = new ReplaySubject<string>();
|
|
31
|
+
|
|
32
|
+
methodA() {
|
|
33
|
+
this.reactive.next('Hello world');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
methodB() {
|
|
37
|
+
return this.reactive.asObservable();
|
|
38
|
+
}
|
|
39
|
+
}`,
|
|
40
|
+
answer: {
|
|
41
|
+
property: {
|
|
42
|
+
name: "reactive"
|
|
43
|
+
},
|
|
44
|
+
getters: [
|
|
45
|
+
{
|
|
46
|
+
name: "methodB"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
setters: [
|
|
50
|
+
{
|
|
51
|
+
name: "methodA"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const INDIRECT_ACCESS = {
|
|
57
|
+
stub: `import { ReplaySubject } from "rxjs";
|
|
58
|
+
|
|
59
|
+
export class TestService {
|
|
60
|
+
private readonly reactive = new ReplaySubject<string>();
|
|
61
|
+
|
|
62
|
+
methodA() {
|
|
63
|
+
this.reactive.next('Hello world');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
methodB() {
|
|
67
|
+
return this.methodC();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
methodC() {
|
|
71
|
+
return this.reactive.asObservable();
|
|
72
|
+
}
|
|
73
|
+
}`,
|
|
74
|
+
answer: {
|
|
75
|
+
property: {
|
|
76
|
+
name: "reactive"
|
|
77
|
+
},
|
|
78
|
+
getters: [
|
|
79
|
+
{
|
|
80
|
+
name: "methodC"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "methodB"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
setters: [
|
|
87
|
+
{
|
|
88
|
+
name: "methodA"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const INITIALIZER_AS_CALL = {
|
|
94
|
+
stub: `import { ReplaySubject } from "rxjs";
|
|
95
|
+
|
|
96
|
+
export class TestService {
|
|
97
|
+
private readonly prop = this.methodD();
|
|
98
|
+
|
|
99
|
+
methodA() {
|
|
100
|
+
this.prop.next('Hello world');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
methodB() {
|
|
104
|
+
return this.methodC();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
methodC() {
|
|
108
|
+
return this.prop.asObservable();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
methodD() {
|
|
112
|
+
return new ReplaySubject<string>();
|
|
113
|
+
}
|
|
114
|
+
}`,
|
|
115
|
+
answer: {
|
|
116
|
+
property: {
|
|
117
|
+
name: "prop"
|
|
118
|
+
},
|
|
119
|
+
getters: [
|
|
120
|
+
{
|
|
121
|
+
name: "methodC"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "methodB"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
setters: [
|
|
128
|
+
{
|
|
129
|
+
name: "methodA"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
135
|
+
0 && (module.exports = {
|
|
136
|
+
DIRECT_ACCESS,
|
|
137
|
+
INDIRECT_ACCESS,
|
|
138
|
+
INITIALIZER_AS_CALL
|
|
139
|
+
});
|