MCPcopy Create free account
hub / github.com/bytedance/bolt / addCapture

Method addCapture

bolt/expression/ExprCompiler.cpp:108–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 : locals(_locals), parent(_parent), exprSet(_exprSet) {}
107
108 void addCapture(FieldReference* reference, const ITypedExpr* fieldAccess) {
109 capture.emplace_back(reference->field());
110 captureReferences.emplace_back(reference);
111 captureFieldAccesses.emplace_back(fieldAccess);
112 }
113};
114
115// Utility method to check eligibility for flattening.

Callers 1

captureFieldReferenceFunction · 0.80

Calls 1

fieldMethod · 0.45

Tested by

no test coverage detected