MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hasLabels

Function hasLabels

src/ast/ast_lint.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39 bool hasLabels ( const ExprBlock * block ) {
40 for ( auto & be : block->list ) {
41 if ( be->rtti_isLabel() ) {
42 return true;
43 }
44 }
45 return false;
46 }
47
48 bool exprReturns ( ExpressionPtr expr ) {
49 if ( expr->rtti_isReturn() ) {

Callers 4

exprReturnsFunction · 0.85
exprReturnsOrBreaksFunction · 0.85
hasLabelsMethod · 0.85
collectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected