|
1 | 1 | package io.shiftleft.codepropertygraph.schema |
2 | 2 |
|
3 | | -import io.shiftleft.codepropertygraph.schema.CpgSchema.PropertyDefaults |
4 | | -import flatgraph.schema.Property.ValueType |
5 | 3 | import flatgraph.schema._ |
6 | 4 |
|
7 | 5 | object Tags extends SchemaBase { |
@@ -44,36 +42,7 @@ object Tags extends SchemaBase { |
44 | 42 | import callGraph._ |
45 | 43 | implicit private val schemaInfo: SchemaInfo = SchemaInfo.forClass(getClass) |
46 | 44 |
|
47 | | -// node properties |
48 | | - val symbol = builder |
49 | | - .addProperty(name = "SYMBOL", valueType = ValueType.String, comment = "") |
50 | | - .mandatory(PropertyDefaults.String) |
51 | | - .protoId(ProtoIds.Symbol) |
52 | | - |
53 | | - val methodShortName = builder |
54 | | - .addProperty(name = "METHOD_SHORT_NAME", valueType = ValueType.String, comment = "") |
55 | | - .mandatory(PropertyDefaults.String) |
56 | | - .protoId(ProtoIds.MethodShortName) |
57 | | - |
58 | | - val packageName = builder |
59 | | - .addProperty(name = "PACKAGE_NAME", valueType = ValueType.String, comment = "") |
60 | | - .mandatory(PropertyDefaults.String) |
61 | | - .protoId(ProtoIds.PackageName) |
62 | | - |
63 | | - val className = builder |
64 | | - .addProperty(name = "CLASS_NAME", valueType = ValueType.String, comment = "") |
65 | | - .mandatory(PropertyDefaults.String) |
66 | | - .protoId(ProtoIds.ClassName) |
67 | | - |
68 | | - val classShortName = builder |
69 | | - .addProperty(name = "CLASS_SHORT_NAME", valueType = ValueType.String, comment = "") |
70 | | - .mandatory(PropertyDefaults.String) |
71 | | - .protoId(ProtoIds.ClassShortName) |
72 | | - |
73 | | - val nodeLabel = builder |
74 | | - .addProperty(name = "NODE_LABEL", valueType = ValueType.String, comment = "") |
75 | | - .mandatory(PropertyDefaults.String) |
76 | | - .protoId(ProtoIds.NodeLabel) |
| 45 | + // node properties |
77 | 46 |
|
78 | 47 | val taggedBy = builder |
79 | 48 | .addEdgeType(name = "TAGGED_BY", comment = "Edges from nodes to the tags they are tagged by.") |
|
0 commit comments