MCPcopy Create free account
hub / github.com/beefytech/Beef / HashNode

Function HashNode

IDEHelper/Compiler/BfDefBuilder.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11USING_NS_BF;
12
13static void HashNode(HashContext& ctx, BfAstNode* astNode)
14{
15 // Add a separator marker so two nodes hashed back-to-back won't mix
16 uint8 marker = 0;
17 ctx.Mixin(&marker, 1);
18
19 if (astNode == NULL)
20 return;
21 ctx.Mixin(astNode->GetSourceData()->mSrc + astNode->GetSrcStart(), astNode->GetSrcLength());
22}
23
24static void HashNode(HashContext& ctx, BfAstNode* astNode, BfAstNode* endNode)
25{

Callers 2

CreateMethodDefMethod · 0.70
VisitMethod · 0.70

Calls 5

GetSourceDataMethod · 0.80
Val128Class · 0.70
MixinMethod · 0.45
GetSrcStartMethod · 0.45
GetSrcLengthMethod · 0.45

Tested by

no test coverage detected