/** Copyright: Copyright (c) 2016, Joakim Brännström. All rights reserved. License: MPL-2 Author: Joakim Brännström (joakim.brannstrom@gmx.com) This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. DO NOT EDIT. THIS FILE IS GENERATED. See the generator script source/devtool/generator_clang_ast_nodes.d */ module libclang_ast.ast.translationunit; import libclang_ast.ast.node : Node; final class TranslationUnit : Node { import clang.Cursor : Cursor; import libclang_ast.ast : Visitor; private Cursor cursor_; this(scope Cursor cursor) @trusted { this.cursor_ = cursor; } Cursor cursor() return const @safe { return Cursor(cursor_.cx); } override void accept(scope Visitor v) @safe const scope { static import libclang_ast.ast; libclang_ast.ast.accept(cursor_, v); } }