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

implicits trait hierarchy: mix in flatgraph implicits in generated.Language trait #95

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ class DomainClassesGenerator(schema: Schema) {
|trait Language
| extends accessors.ConcreteStoredConversions
| with traversals.ConcreteStoredConversions
| with neighboraccessors.Conversions {
| with neighboraccessors.Conversions
| with io.joern.odb2.traversal.Language
| with io.joern.odb2.Implicits {
| implicit def cpgToGeneratedNodeStarters(cpg: Cpg): CpgNodeStarters = CpgNodeStarters(cpg)
| }
|
Expand Down Expand Up @@ -867,7 +869,6 @@ class DomainClassesGenerator(schema: Schema) {
s"""
|package $basePackage.neighboraccessors
|
|import io.joern.odb2.traversal.Language.*
|import $basePackage.nodes
|import $basePackage.Language.*
|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package io.shiftleft.codepropertygraph.generated.v2

/** combining all implicits into one trait that can be mixed in further downstream */
trait Language extends accessors.ConcreteStoredConversions with traversals.ConcreteStoredConversions with neighboraccessors.Conversions {
trait Language
extends accessors.ConcreteStoredConversions
with traversals.ConcreteStoredConversions
with neighboraccessors.Conversions
with io.joern.odb2.traversal.Language
with io.joern.odb2.Implicits {
implicit def cpgToGeneratedNodeStarters(cpg: Cpg): CpgNodeStarters = CpgNodeStarters(cpg)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.shiftleft.codepropertygraph.generated.v2.neighboraccessors

import io.joern.odb2.traversal.Language.*
import io.shiftleft.codepropertygraph.generated.v2.nodes
import io.shiftleft.codepropertygraph.generated.v2.Language.*

Expand Down
Loading