StaticAssert

Constructors

this
this(Loc loc, Expression exp, Expression msg)
Undocumented in source.

Members

Functions

accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
addMember
void addMember(Scope* sc, ScopeDsymbol sds)
Undocumented in source. Be warned that the author may not have intended to support it.
kind
const(char)* kind()
Undocumented in source. Be warned that the author may not have intended to support it.
oneMember
bool oneMember(Dsymbol* ps, Identifier ident)
Undocumented in source. Be warned that the author may not have intended to support it.
syntaxCopy
Dsymbol syntaxCopy(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

exp
Expression exp;
Undocumented in source.
msg
Expression msg;
Undocumented in source.

Inherited Members

From Dsymbol

ident
Identifier ident;
Undocumented in source.
parent
Dsymbol parent;
Undocumented in source.
cppnamespace
CPPNamespaceDeclaration cppnamespace;

C++ namespace this symbol belongs to

csym
Symbol* csym;
Undocumented in source.
isym
Symbol* isym;
Undocumented in source.
comment
const(char)* comment;
Undocumented in source.
loc
Loc loc;
Undocumented in source.
_scope
Scope* _scope;
Undocumented in source.
prettystring
const(char)* prettystring;
Undocumented in source.
errors
bool errors;
Undocumented in source.
semanticRun
PASS semanticRun;
Undocumented in source.
depdecl
DeprecatedDeclaration depdecl;
Undocumented in source.
userAttribDecl
UserAttributeDeclaration userAttribDecl;
Undocumented in source.
ddocUnittest
UnitTestDeclaration ddocUnittest;
Undocumented in source.
create
Dsymbol create(Identifier ident)
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.
toPrettyCharsHelper
const(char)* toPrettyCharsHelper()
Undocumented in source. Be warned that the author may not have intended to support it.
getLoc
const(Loc) getLoc()
Undocumented in source. Be warned that the author may not have intended to support it.
locToChars
const(char)* locToChars()
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(RootObject o)
Undocumented in source. Be warned that the author may not have intended to support it.
isAnonymous
bool isAnonymous()
Undocumented in source. Be warned that the author may not have intended to support it.
error
void error(Loc loc, const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
error
void error(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
deprecation
void deprecation(Loc loc, const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
deprecation
void deprecation(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
checkDeprecated
bool checkDeprecated(Loc loc, Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
getModule
Module getModule()

Determine which Module a Dsymbol is in.

getAccessModule
Module getAccessModule()

Determine which Module a Dsymbol is in, as far as access rights go.

pastMixin
inout(Dsymbol) pastMixin()

pastMixin returns the enclosing symbol if this is a template mixin.

toParent
inout(Dsymbol) toParent()
toParent2
inout(Dsymbol) toParent2()
toParentDecl
inout(Dsymbol) toParentDecl()
toParentLocal
inout(Dsymbol) toParentLocal()

parent field returns a lexically enclosing scope symbol this is a member of.

toParentP
Dsymbol toParentP(Dsymbol p1, Dsymbol p2)

Returns the declaration scope scope of this unless any of the symbols p1 or p2 resides in its enclosing instantiation scope then the latter is returned.

isInstantiated
inout(TemplateInstance) isInstantiated()
Undocumented in source. Be warned that the author may not have intended to support it.
followInstantiationContext
bool followInstantiationContext(Dsymbol p1, Dsymbol p2)

Returns true if any of the symbols p1 or p2 resides in the enclosing instantiation scope of this.

isSpeculative
inout(TemplateInstance) isSpeculative()
Undocumented in source. Be warned that the author may not have intended to support it.
ungagSpeculative
Ungag ungagSpeculative()
Undocumented in source. Be warned that the author may not have intended to support it.
dyncast
DYNCAST dyncast()
Undocumented in source. Be warned that the author may not have intended to support it.
arraySyntaxCopy
Dsymbols* arraySyntaxCopy(Dsymbols* a)

Do syntax copy of an array of Dsymbol's.

getIdent
Identifier getIdent()
Undocumented in source. Be warned that the author may not have intended to support it.
toPrettyChars
const(char)* toPrettyChars(bool QualifyTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
kind
const(char)* kind()
Undocumented in source. Be warned that the author may not have intended to support it.
toAlias
Dsymbol toAlias()

If this symbol is really an alias for another, return that other. If needed, semantic() is invoked due to resolve forward reference.

toAlias2
Dsymbol toAlias2()

Resolve recursive tuple expansion in eponymous template.

addMember
void addMember(Scope* sc, ScopeDsymbol sds)
Undocumented in source. Be warned that the author may not have intended to support it.
setScope
void setScope(Scope* sc)

Set scope for future semantic analysis so we can deal better with forward references.

importAll
void importAll(Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
search
Dsymbol search(Loc loc, Identifier ident, int flags)

Search for ident as member of s.

search_correct
Dsymbol search_correct(Identifier ident)
Undocumented in source. Be warned that the author may not have intended to support it.
searchX
Dsymbol searchX(Loc loc, Scope* sc, RootObject id, int flags)

Search for identifier id as a member of this. id may be a template instance.

overloadInsert
bool overloadInsert(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.
size
d_uns64 size(Loc loc)
isforwardRef
bool isforwardRef()
Undocumented in source. Be warned that the author may not have intended to support it.
isThis
inout(AggregateDeclaration) isThis()
Undocumented in source. Be warned that the author may not have intended to support it.
isExport
bool isExport()
Undocumented in source. Be warned that the author may not have intended to support it.
isImportedSymbol
bool isImportedSymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isDeprecated
bool isDeprecated()
Undocumented in source. Be warned that the author may not have intended to support it.
isOverloadable
bool isOverloadable()
Undocumented in source. Be warned that the author may not have intended to support it.
isLabel
LabelDsymbol isLabel()
Undocumented in source. Be warned that the author may not have intended to support it.
isMember
inout(AggregateDeclaration) isMember()

Returns an AggregateDeclaration when toParent() is that.

isMember2
inout(AggregateDeclaration) isMember2()

Returns an AggregateDeclaration when toParent2() is that.

isMemberDecl
inout(AggregateDeclaration) isMemberDecl()

Returns an AggregateDeclaration when toParentDecl() is that.

isMemberLocal
inout(AggregateDeclaration) isMemberLocal()

Returns an AggregateDeclaration when toParentLocal() is that.

isClassMember
ClassDeclaration isClassMember()
Undocumented in source. Be warned that the author may not have intended to support it.
getType
Type getType()
Undocumented in source. Be warned that the author may not have intended to support it.
needThis
bool needThis()
Undocumented in source. Be warned that the author may not have intended to support it.
prot
Prot prot()
syntaxCopy
Dsymbol syntaxCopy(Dsymbol s)

Copy the syntax. Used for template instantiations. If s is NULL, allocate the new object, otherwise fill it in.

oneMember
bool oneMember(Dsymbol* ps, Identifier ident)

Determine if this symbol is only one.

oneMembers
bool oneMembers(Dsymbols* members, Dsymbol* ps, Identifier ident)

Same as Dsymbol::oneMember(), but look at an array of Dsymbols.

setFieldOffset
void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion)
Undocumented in source. Be warned that the author may not have intended to support it.
hasPointers
bool hasPointers()

Is Dsymbol a variable that contains pointers?

hasStaticCtorOrDtor
bool hasStaticCtorOrDtor()
Undocumented in source. Be warned that the author may not have intended to support it.
addLocalClass
void addLocalClass(ClassDeclarations* )
Undocumented in source. Be warned that the author may not have intended to support it.
addObjcSymbols
void addObjcSymbols(ClassDeclarations* classes, ClassDeclarations* categories)
Undocumented in source. Be warned that the author may not have intended to support it.
checkCtorConstInit
void checkCtorConstInit()
Undocumented in source. Be warned that the author may not have intended to support it.
addComment
void addComment(const(char)* comment)

Add documentation comment to Dsymbol. Ignore NULL comments.

inNonRoot
bool inNonRoot()

Returns true if this symbol is defined in a non-root module without instantiation.

accept
void accept(Visitor v)
isPackage
inout(Package) isPackage()
Undocumented in source. Be warned that the author may not have intended to support it.
isModule
inout(Module) isModule()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnumMember
inout(EnumMember) isEnumMember()
Undocumented in source. Be warned that the author may not have intended to support it.
isTemplateDeclaration
inout(TemplateDeclaration) isTemplateDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isTemplateInstance
inout(TemplateInstance) isTemplateInstance()
Undocumented in source. Be warned that the author may not have intended to support it.
isTemplateMixin
inout(TemplateMixin) isTemplateMixin()
Undocumented in source. Be warned that the author may not have intended to support it.
isForwardingAttribDeclaration
inout(ForwardingAttribDeclaration) isForwardingAttribDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isNspace
inout(Nspace) isNspace()
Undocumented in source. Be warned that the author may not have intended to support it.
isDeclaration
inout(Declaration) isDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isStorageClassDeclaration
inout(StorageClassDeclaration) isStorageClassDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isExpressionDsymbol
inout(ExpressionDsymbol) isExpressionDsymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isThisDeclaration
inout(ThisDeclaration) isThisDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isTypeInfoDeclaration
inout(TypeInfoDeclaration) isTypeInfoDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isTupleDeclaration
inout(TupleDeclaration) isTupleDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isAliasDeclaration
inout(AliasDeclaration) isAliasDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isAggregateDeclaration
inout(AggregateDeclaration) isAggregateDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isFuncDeclaration
inout(FuncDeclaration) isFuncDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isFuncAliasDeclaration
inout(FuncAliasDeclaration) isFuncAliasDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isOverDeclaration
inout(OverDeclaration) isOverDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isFuncLiteralDeclaration
inout(FuncLiteralDeclaration) isFuncLiteralDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isCtorDeclaration
inout(CtorDeclaration) isCtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isPostBlitDeclaration
inout(PostBlitDeclaration) isPostBlitDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isDtorDeclaration
inout(DtorDeclaration) isDtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isStaticCtorDeclaration
inout(StaticCtorDeclaration) isStaticCtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isStaticDtorDeclaration
inout(StaticDtorDeclaration) isStaticDtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isSharedStaticCtorDeclaration
inout(SharedStaticCtorDeclaration) isSharedStaticCtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isSharedStaticDtorDeclaration
inout(SharedStaticDtorDeclaration) isSharedStaticDtorDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isInvariantDeclaration
inout(InvariantDeclaration) isInvariantDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isUnitTestDeclaration
inout(UnitTestDeclaration) isUnitTestDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isNewDeclaration
inout(NewDeclaration) isNewDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isVarDeclaration
inout(VarDeclaration) isVarDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isClassDeclaration
inout(ClassDeclaration) isClassDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isStructDeclaration
inout(StructDeclaration) isStructDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isUnionDeclaration
inout(UnionDeclaration) isUnionDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isInterfaceDeclaration
inout(InterfaceDeclaration) isInterfaceDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isScopeDsymbol
inout(ScopeDsymbol) isScopeDsymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isForwardingScopeDsymbol
inout(ForwardingScopeDsymbol) isForwardingScopeDsymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isWithScopeSymbol
inout(WithScopeSymbol) isWithScopeSymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isArrayScopeSymbol
inout(ArrayScopeSymbol) isArrayScopeSymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
isImport
inout(Import) isImport()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnumDeclaration
inout(EnumDeclaration) isEnumDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isSymbolDeclaration
inout(SymbolDeclaration) isSymbolDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isAttribDeclaration
inout(AttribDeclaration) isAttribDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isAnonDeclaration
inout(AnonDeclaration) isAnonDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isCPPNamespaceDeclaration
inout(CPPNamespaceDeclaration) isCPPNamespaceDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isProtDeclaration
inout(ProtDeclaration) isProtDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isOverloadSet
inout(OverloadSet) isOverloadSet()
Undocumented in source. Be warned that the author may not have intended to support it.
isCompileDeclaration
inout(CompileDeclaration) isCompileDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta