1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 16:37:50 +03:00

Rename to source/target for consistently

This commit is contained in:
Timothy Clem 2018-09-11 15:29:24 -07:00
parent 4dedb928b2
commit 06029f2be6
3 changed files with 8 additions and 8 deletions

View File

@ -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 {

View File

@ -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
]

View File

@ -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