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

Method isPointerToAnnotation

src/ast/ast_typedecl.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 Annotation * TypeDecl::isPointerToAnnotation() const {
55 if ( baseType!=Type::tPointer || !firstType || firstType->baseType!=Type::tHandle ) {
56 return nullptr;
57 } else {
58 return firstType->annotation;
59 }
60 }
61
62 // auto or generic type conversion
63

Callers 1

needAvoidNullPtrFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected