Sha256: e6a2f0e40f6dbc6196117db606f86f11ccd7458d2605729c4ae3ced4218de903

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

//
//  reporting.h
//  drafter
//
//  Created by Jiri Kratochvil on 2015-02-13
//  Copyright (c) 2015 Apiary Inc. All rights reserved.
//

#ifndef DRAFTER_REPORTING_H
#define DRAFTER_REPORTING_H

#include "drafter.h"
#include "SourceAnnotation.h"

/**
 *  \brief Print parser report to stderr.
 *
 *  \param report A parser report to print
 *  \param source Source data
 *  \param useLineNumbers True if the annotations needs to be printed by line and column number
 */
void PrintReport(const snowcrash::Report& report,
                 const std::string& source,
                 const bool useLineNumbers);

/**
 *  \brief Print parser report to stderr.
 *
 *  \param report A parser report to print
 *  \param source Source data
 *  \param useLineNumbers True if the annotations needs to be printed by line and column number
 *  \param error - code form parsing
 */
void PrintReport(const drafter_result*,
                 const std::string& source,
                 const bool useLineNumbers,
                 const int error);

#endif // #ifndef DRAFTER_REPORTING_H

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lounge_lizard-0.1.4 ext/drafter/src/reporting.h
lounge_lizard-0.1.3 ext/drafter/src/reporting.h
lounge_lizard-0.1.2 ext/drafter/src/reporting.h
lounge_lizard-0.1.1 ext/drafter/src/reporting.h
lounge_lizard-0.1.0 ext/drafter/src/reporting.h