Do the +
or -
symbols at the beginning of a method's declaration -- for class and instance methods respectively -- have a name?
By name I mean something like "method descriptor" or "method type indicator", or something similar.
Do the +
or -
symbols at the beginning of a method's declaration -- for class and instance methods respectively -- have a name?
By name I mean something like "method descriptor" or "method type indicator", or something similar.
I agree with Hot Licks; I've never seen a name for these tokens in any documentation, and the relevant part of Clang's parser
Decl *Parser::ParseObjCMethodPrototype(tok::ObjCKeywordKind MethodImplKind,
bool MethodDefinition) {
assert((Tok.is(tok::minus) || Tok.is(tok::plus)) && "expected +/-");
just calls them "plus" and "minus". (See also ParseObjc.cpp line 322; the same.)
"Method type indicator" sounds pretty reasonable to me, though, if you really need something. I personally would easily understand what you were talking about.