cpptooling.data.kind_type

Members

Functions

logTypeAttr
void logTypeAttr(const ref TypeAttr attr, const uint indent = 0, in uint extra_space = 0, in string func = __FUNCTION__, in uint line = __LINE__)

Pretty loggning with indentation.

logTypeResult
void logTypeResult(ref const(TypeResult) result, in uint indent, in string func = __FUNCTION__, in uint line = __LINE__)

Pretty loggning with indentation.

logTypeResult
void logTypeResult(ref const(TypeResults) results, in uint indent = 0, in string func = __FUNCTION__, in uint line = __LINE__)

Pretty loggning with indentation.

logTypeResult
void logTypeResult(ref const(Nullable!TypeResults) results, in uint indent = 0, in string func = __FUNCTION__, in uint line = __LINE__)

Pretty loggning with indentation.

mergeExtra
TypeResults mergeExtra(ref return TypeResults lhs, const ref TypeResults rhs)

Merge rhs into lhs.

splitTypeId
auto splitTypeId(ref const TypeKind t, const uint indent = 0)

Split the TypeId from the formatter in a Left/Right.

splitTypeId
auto splitTypeId(ref const TypeKind t)

Split the TypeId from the formatter in a Left/Right.

toStringDecl
auto toStringDecl(const TypeKind t, const TypeAttr ta, string id)
auto toStringDecl(const TypeKind t, const TypeAttr ta)

Combine type attributes, kind and identifier to produce a declaration. TODO reconsider the function name. - Don't encode the return type in the name (?) - Is it really a Decl-> declaration? Maybe more appropriate would be "merge", of type and attributes?

toStringDecl
auto toStringDecl(const T value, string id)
auto toStringDecl(const T value)

if a type can be cast to a TypeKindAttr.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

Extracted information of types.

Date

Date: 2015-2017, Joakim Brännström

License

MPL-2, Mozilla Public License 2.0