Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jssrc2cpg] Overhaul typedecl method bindings #4727

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

max-leuthaeuser
Copy link
Contributor

No description provided.

@max-leuthaeuser max-leuthaeuser changed the title [jssrc2cpg] WIP: Added method names and fullnames to TypeDecl method bindings [jssrc2cpg] WIP: Overhaul typedecl method bindings Jul 3, 2024
@@ -324,308 +323,6 @@ class TsDecoratorAstCreationPassTests extends AstJsSrc2CpgSuite(".ts") {
annotationD.parameterAssign.l shouldBe empty
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was code duplicated in TsAstCreationPassTests.scala

inside(cpg.typeDecl("Greeter").member.l) { case List(init, greeting, name, propName, foo, anon, toString) =>
init.name shouldBe "<init>"
init.typeFullName shouldBe "Test0.ts::program:Greeter"
init.dynamicTypeHintFullName shouldBe List("Test0.ts::program:Greeter:<init>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like we discussed, this isn't entirely correct but not a blocker

@max-leuthaeuser max-leuthaeuser changed the title [jssrc2cpg] WIP: Overhaul typedecl method bindings [jssrc2cpg] Overhaul typedecl method bindings Jul 5, 2024
@max-leuthaeuser max-leuthaeuser merged commit cf8d139 into master Jul 5, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/methodBindingNames branch July 5, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants