Skip to content

Commit

Permalink
chore: add cache feature to deep-contains function
Browse files Browse the repository at this point in the history
  • Loading branch information
okadurin committed Jul 30, 2024
1 parent 78229f4 commit 413dd2f
Show file tree
Hide file tree
Showing 8 changed files with 1,073 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"meta": {
"searchType": "ast-analyzer",
"analyzerMeta": {
"name": "find-classes",
"requiredAst": "babel",
"identifier": "importing-target-project_0.0.2-target-mock__-44571284",
"targetProject": {
"mainEntry": "./target-src/match-imports/root-level-imports.js",
"name": "importing-target-project",
"version": "0.0.2-target-mock",
"commitHash": "[not-a-git-root]"
},
"configuration": {
"gatherFilesConfig": {},
"skipCheckMatchCompatibility": false,
"addSystemPathsInResult": false
}
}
},
"queryOutput": [
{
"file": "./target-src/find-customelements/multiple.js",
"result": [
{
"name": null,
"isMixin": true,
"superClasses": [
{
"name": "HTMLElement",
"isMixin": false,
"rootFile": {
"file": "[current]",
"specifier": "HTMLElement"
}
}
],
"members": {
"props": [],
"methods": []
}
},
{
"name": "ExtendedOnTheFly",
"isMixin": false,
"superClasses": [
{
"isMixin": true,
"rootFile": {
"file": "[current]"
}
},
{
"isMixin": false,
"rootFile": {
"file": "[current]"
}
}
],
"members": {
"props": [],
"methods": []
}
}
]
},
{
"file": "./target-src/match-subclasses/ExtendedComp.js",
"result": [
{
"name": "ExtendedComp",
"isMixin": false,
"superClasses": [
{
"name": "MyCompMixin",
"isMixin": true,
"rootFile": {
"file": "exporting-ref-project",
"specifier": "[default]"
}
},
{
"name": "RefClass",
"isMixin": false,
"rootFile": {
"file": "exporting-ref-project",
"specifier": "RefClass"
}
}
],
"members": {
"props": [
{
"name": "getterSetter",
"accessType": "public",
"kind": [
"get",
"set"
]
},
{
"name": "staticGetterSetter",
"accessType": "public",
"static": true,
"kind": [
"get",
"set"
]
},
{
"name": "attributes",
"accessType": "public",
"static": true,
"kind": [
"get"
]
},
{
"name": "styles",
"accessType": "public",
"static": true,
"kind": [
"get"
]
},
{
"name": "updateComplete",
"accessType": "public",
"kind": [
"get"
]
},
{
"name": "localizeNamespaces",
"accessType": "public",
"static": true,
"kind": [
"get"
]
},
{
"name": "slots",
"accessType": "public",
"kind": [
"get"
]
}
],
"methods": [
{
"name": "method",
"accessType": "public"
},
{
"name": "_protectedMethod",
"accessType": "protected"
},
{
"name": "__privateMethod",
"accessType": "private"
},
{
"name": "$protectedMethod",
"accessType": "protected"
},
{
"name": "$$privateMethod",
"accessType": "private"
},
{
"name": "constructor",
"accessType": "public"
},
{
"name": "connectedCallback",
"accessType": "public"
},
{
"name": "disconnectedCallback",
"accessType": "public"
},
{
"name": "requestUpdate",
"accessType": "public"
},
{
"name": "createRenderRoot",
"accessType": "public"
},
{
"name": "render",
"accessType": "public"
},
{
"name": "updated",
"accessType": "public"
},
{
"name": "firstUpdated",
"accessType": "public"
},
{
"name": "update",
"accessType": "public"
},
{
"name": "shouldUpdate",
"accessType": "public"
},
{
"name": "onLocaleUpdated",
"accessType": "public"
}
]
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"meta": {
"searchType": "ast-analyzer",
"analyzerMeta": {
"name": "find-customelements",
"requiredAst": "swc-to-babel",
"identifier": "importing-target-project_0.0.2-target-mock__-1515565332",
"targetProject": {
"mainEntry": "./target-src/match-imports/root-level-imports.js",
"name": "importing-target-project",
"version": "0.0.2-target-mock",
"commitHash": "[not-a-git-root]"
},
"configuration": {
"gatherFilesConfig": {},
"skipCheckMatchCompatibility": false,
"addSystemPathsInResult": false
}
}
},
"queryOutput": [
{
"file": "./target-src/find-customelements/multiple.js",
"result": [
{
"tagName": "ref-class",
"constructorIdentifier": "RefClass",
"rootFile": {
"file": "exporting-ref-project",
"specifier": "RefClass"
}
},
{
"tagName": "extended-comp",
"constructorIdentifier": "ExtendedComp",
"rootFile": {
"file": "./target-src/match-subclasses/ExtendedComp.js",
"specifier": "ExtendedComp"
}
},
{
"tagName": "on-the-fly",
"constructorIdentifier": "[inline]",
"rootFile": {
"file": "[current]",
"specifier": "[inline]"
}
}
]
}
]
}
Loading

0 comments on commit 413dd2f

Please sign in to comment.