TranslationUnit

Undocumented in source.
struct TranslationUnit {}

Constructors

this
this(CXTranslationUnit cx)
Undocumented in source.

Members

Functions

dumpAST
string dumpAST(bool skipIncluded)
Undocumented in source. Be warned that the author may not have intended to support it.
extent
SourceRange extent(uint startOffset, uint endOffset)
Undocumented in source. Be warned that the author may not have intended to support it.
file
File file(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
file
File file()
Undocumented in source. Be warned that the author may not have intended to support it.
includeLocations
SourceLocation[] includeLocations()
Undocumented in source. Be warned that the author may not have intended to support it.
includeLocationsImpl
SourceLocation[] includeLocationsImpl(Range cursors)
Undocumented in source. Be warned that the author may not have intended to support it.
isCompiled
bool isCompiled()
Undocumented in source. Be warned that the author may not have intended to support it.
isFileMultipleIncludeGuarded
bool isFileMultipleIncludeGuarded(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
isMultipleIncludeGuarded
bool isMultipleIncludeGuarded()
Undocumented in source. Be warned that the author may not have intended to support it.
location
SourceLocation location(uint offset)
Undocumented in source. Be warned that the author may not have intended to support it.
location
SourceLocation location(string path, uint offset)
Undocumented in source. Be warned that the author may not have intended to support it.
relativeCursorLocationLessOp
bool delegate(Cursor, Cursor) relativeCursorLocationLessOp()
Undocumented in source. Be warned that the author may not have intended to support it.
relativeLocationAccessor
ulong delegate(SourceLocation) relativeLocationAccessor()
Undocumented in source. Be warned that the author may not have intended to support it.
relativeLocationAccessorImpl
ulong delegate(SourceLocation) relativeLocationAccessorImpl(Range cursors)
Undocumented in source. Be warned that the author may not have intended to support it.
relativeLocationLessOp
bool delegate(SourceLocation, SourceLocation) relativeLocationLessOp()
Undocumented in source. Be warned that the author may not have intended to support it.
tokenize
Token[] tokenize(SourceRange extent)
Undocumented in source. Be warned that the author may not have intended to support it.
tokenizeNoComments
Token[] tokenizeNoComments(SourceRange extent)
Undocumented in source. Be warned that the author may not have intended to support it.
tokens
Token[] tokens()
Undocumented in source. Be warned that the author may not have intended to support it.
tokensNoComments
Token[] tokensNoComments()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin CX
Undocumented in source.

Properties

cursor
Cursor cursor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
declarations
DeclarationVisitor declarations [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
diagnosticSet
DiagnosticSet diagnosticSet [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
diagnostics
DiagnosticVisitor diagnostics [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
numDiagnostics
size_t numDiagnostics [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
source
string source [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
spelling
string spelling [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

parse
TranslationUnit parse(Index index, string sourceFilename, string[] commandLineArgs, CXUnsavedFile[] unsavedFiles, uint options)
Undocumented in source. Be warned that the author may not have intended to support it.
parseString
TranslationUnit parseString(Index index, string source, string[] commandLineArgs, CXUnsavedFile[] unsavedFiles, uint options)
Undocumented in source. Be warned that the author may not have intended to support it.
tokenize
Token[] tokenize(CXTranslationUnit cx, SourceRange extent)
Undocumented in source. Be warned that the author may not have intended to support it.
tokenizeNoComments
Token[] tokenizeNoComments(CXTranslationUnit cx, SourceRange extent)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

sourceString
string sourceString;
Undocumented in source.

Mixed In Members

From mixin CX

cx
CType cx;
Undocumented in source.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta