mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Rename to source/target for consistently
This commit is contained in:
parent
4dedb928b2
commit
06029f2be6
@ -75,8 +75,8 @@ message ControlFlowGraph {
|
||||
}
|
||||
|
||||
message ControlFlowEdge {
|
||||
int64 from = 1;
|
||||
int64 to = 2;
|
||||
int64 source = 1;
|
||||
int64 target = 2;
|
||||
}
|
||||
|
||||
message ControlFlowVertex {
|
||||
@ -132,8 +132,8 @@ message TermGraph {
|
||||
}
|
||||
|
||||
message TermEdge {
|
||||
int64 from = 1;
|
||||
int64 to = 2;
|
||||
int64 source = 1;
|
||||
int64 target = 2;
|
||||
}
|
||||
|
||||
message TermVertex {
|
||||
|
@ -145,8 +145,8 @@ instance Message (G.Edge ControlFlowVertex) where
|
||||
encodeMessage _ (G.Edge (from, to)) = encodePrimitive 1 (uniqueTag from) <> encodePrimitive 2 (uniqueTag to)
|
||||
decodeMessage = error "decodeMessage not implemented for (G.Edge ControlFlowVertex)"
|
||||
dotProto _ =
|
||||
[ DotProtoMessageField $ DotProtoField 1 (Prim PB.Int64) (Single "from") [] Nothing
|
||||
, DotProtoMessageField $ DotProtoField 2 (Prim PB.Int64) (Single "to") [] Nothing
|
||||
[ DotProtoMessageField $ DotProtoField 1 (Prim PB.Int64) (Single "source") [] Nothing
|
||||
, DotProtoMessageField $ DotProtoField 2 (Prim PB.Int64) (Single "target") [] Nothing
|
||||
]
|
||||
|
||||
|
||||
|
@ -50,8 +50,8 @@ instance Message (Edge TermVertex) where
|
||||
encodeMessage _ (Edge (from, to)) = encodePrimitive 1 (uniqueTag from) <> encodePrimitive 2 (uniqueTag to)
|
||||
decodeMessage = error "decodeMessage not implemented for (Edge TermVertex)"
|
||||
dotProto _ =
|
||||
[ DotProtoMessageField $ DotProtoField 1 (Prim PB.Int64) (Single "from") [] Nothing
|
||||
, DotProtoMessageField $ DotProtoField 2 (Prim PB.Int64) (Single "to") [] Nothing
|
||||
[ DotProtoMessageField $ DotProtoField 1 (Prim PB.Int64) (Single "source") [] Nothing
|
||||
, DotProtoMessageField $ DotProtoField 2 (Prim PB.Int64) (Single "target") [] Nothing
|
||||
]
|
||||
|
||||
instance Message TermVertex where
|
||||
|
Loading…
Reference in New Issue
Block a user