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

Method canWrite

src/ast/ast_typedecl.cpp:1901–1909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899 }
1900
1901 bool TypeDecl::canWrite() const {
1902 bool cw = baseType==Type::tPointer || baseType==Type::anyArgument || isRef();
1903 if ( baseType!=Type::tPointer ) {
1904 cw &= !constant;
1905 } else if ( firstType ) {
1906 cw &= !firstType->constant;
1907 }
1908 return cw;
1909 }
1910
1911 // validate swizzle mask and build mask type
1912

Callers 1

preVisitMethod · 0.80

Calls 1

isRefFunction · 0.85

Tested by

no test coverage detected