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

Method makeBlockType

src/ast/ast.cpp:1832–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1830 }
1831
1832 TypeDeclPtr ExprBlock::makeBlockType () const {
1833 auto eT = new TypeDecl(Type::tBlock);
1834 eT->constant = true;
1835 if ( type ) {
1836 eT->firstType = new TypeDecl(*type);
1837 }
1838 for ( auto & arg : arguments ) {
1839 if ( arg->type ) {
1840 eT->argTypes.push_back(new TypeDecl(*arg->type));
1841 eT->argNames.push_back(arg->name);
1842 }
1843 }
1844 return eT;
1845 }
1846
1847 void ExprBlock::visitFinally(Visitor & vis) {
1848 if ( !finalList.empty() && !finallyDisabled ) {

Callers 6

generateLambdaStructFunction · 0.80
visitMethod · 0.80
visitMethod · 0.80
convertBlockToLambdaMethod · 0.80
makeBlockTypeFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected