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

Function getConstExprIntOrUInt

src/ast/ast.cpp:3035–3041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3033 }
3034
3035 int64_t getConstExprIntOrUInt ( ExpressionPtr expr ) {
3036 auto result = tryGetConstExprIntOrUInt(expr);
3037 DAS_ASSERTF ( result.second,
3038 "we should not even be here. there is an enumeration of unsupported type."
3039 "something in enumeration (or otherwise) did not fold.");
3040 return result.second ? result.first : 0;
3041 }
3042
3043}

Callers 3

visitEnumerationValueMethod · 0.85
findMethod · 0.85
makeEnumDebugInfoMethod · 0.85

Calls 1

tryGetConstExprIntOrUIntFunction · 0.85

Tested by

no test coverage detected