PostBlitDeclaration

extern (C++) final
class PostBlitDeclaration : FuncDeclaration {}

Inherited Members

From FuncDeclaration

functionSemantic
bool functionSemantic()

Resolve forward reference of function signature - parameter types, return type, and attributes. Returns false if any errors exist in the signature.

functionSemantic3
bool functionSemantic3()

Resolve forward reference of function body. Returns false if any errors exist in the body.

checkForwardRef
bool checkForwardRef(Loc loc)

Check that this function type is properly resolved. If not, report "forward reference error" and return true.

overrides
int overrides(FuncDeclaration fd)

Determine if 'this' overrides fd. Return !=0 if it does.

findVtblIndex
int findVtblIndex(Dsymbols* vtbl, int dim)

Find index of function in vtbl[0..dim] that this function overrides. Prefer an exact match to a covariant one.

overrideInterface
BaseClass* overrideInterface()

If function a function in a base class, return that base class.

overloadInsert
bool overloadInsert(Dsymbol s)

Overload this FuncDeclaration with the new one f. Return true if successful; i.e. no conflict.

overloadExactMatch
FuncDeclaration overloadExactMatch(Type t)

Find function in overload list that exactly matches t.

overloadModMatch
FuncDeclaration overloadModMatch(Loc loc, Type tthis, ref bool hasOverloads)

Find function in overload list that matches to the 'this' modifier. There's four result types.

findTemplateDeclRoot
TemplateDeclaration findTemplateDeclRoot()

find function template root in overload list

inUnittest
bool inUnittest()

Returns true if function was declared directly or indirectly in a unittest block

leastAsSpecialized
MATCH leastAsSpecialized(FuncDeclaration g)

Determine partial specialization order of 'this' vs g. This is very similar to TemplateDeclaration::leastAsSpecialized().

searchLabel
LabelDsymbol searchLabel(Identifier ident)

Labels are in a separate scope, one per function.

getLevel
int getLevel(Loc loc, Scope* sc, FuncDeclaration fd)

Determine lexical level difference from 'this' to nested function 'fd'. Error if this cannot call fd.

toFullSignature
const(char)* toFullSignature()

for diagnostics, e.g. 'int foo(int x, int y) pure'

setImpure
bool setImpure()

The function is doing something impure, so mark it as impure. If there's a purity error, return true.

setUnsafe
bool setUnsafe()

The function is doing something unsave, so mark it as unsafe. If there's a safe error, return true.

setGC
bool setGC()

The function is doing something that may allocate with the GC, so mark it as not nogc (not no-how).

isolateReturn
bool isolateReturn()

Returns true if the function return value has no indirection which comes from the parameters.

parametersIntersect
bool parametersIntersect(Type t)

Returns true if an object typed t can have indirections which come from the parameters.

isNested
bool isNested()

Determine if function needs a static frame pointer.

isThis
AggregateDeclaration isThis()

Determine if function is a non-static member function that has an implicit 'this' expression.

isUnique
FuncDeclaration isUnique()

If there are no overloads of function f, return that function, otherwise return NULL.

checkNestedReference
bool checkNestedReference(Scope* sc, Loc loc)

In the current function, we are calling 'this' function. 1. Check to see if the current function can call 'this' function, issue error if not. 2. If the current function is not the parent of 'this' function, then add the current function to the list of siblings of 'this' function. 3. If the current function is a literal, and it's accessing an uplevel scope, then mark it as a delegate. Returns true if error occurs.

needsClosure
bool needsClosure()

Look at all the variables in this function that are referenced by nested functions, and determine if a closure needs to be created for them.

checkClosure
bool checkClosure()

Check that the function contains any closure. If it's @nogc, report suitable errors. This is mostly consistent with FuncDeclaration::needsClosure().

hasNestedFrameRefs
bool hasNestedFrameRefs()

Determine if function's variables are referenced by a function nested within it.

buildResultVar
void buildResultVar(Scope* sc, Type tret)

Declare result variable lazily.

mergeFrequire
Statement mergeFrequire(Statement sf)

Merge into this function the 'in' contracts of all it overrides. 'in's are OR'd together, i.e. only one of them needs to pass.

mergeFensure
Statement mergeFensure(Statement sf, Identifier oid)

Merge into this function the 'out' contracts of all it overrides. 'out's are AND'd together, i.e. all of them need to pass.

getParameters
Parameters* getParameters(int* pvarargs)

Return the function's parameter list, and whether it is variadic or not.

genCfunc
FuncDeclaration genCfunc(Parameters* fparams, Type treturn, const(char)* name, StorageClass stc = 0)

Generate a FuncDeclaration for a runtime library function.

Meta