Commit 638ff7bb authored by Andrew Twyman's avatar Andrew Twyman

Add more documentation to constants for testing purposes.

parent 5d02d9f2
......@@ -20,9 +20,13 @@ constants = record {
const opt_bool_constant: optional<bool> = true;
const opt_i8_constant: optional<i8> = 1;
# opt_i16_constant has documentation.
const opt_i16_constant: optional<i16> = 2;
const opt_i32_constant: optional<i32> = 3;
const opt_i64_constant: optional<i64> = 4;
# opt_f32_constant has long documentation.
# (Second line of multi-line documentation.
# Indented third line of multi-line documentation.)
const opt_f32_constant: optional<f32> = 5.0;
const opt_f64_constant: optional<f64> = 5.0;
......@@ -57,9 +61,13 @@ constants_interface = interface +c {
const opt_bool_constant: optional<bool> = true;
const opt_i8_constant: optional<i8> = 1;
# opt_i16_constant has documentation.
const opt_i16_constant: optional<i16> = 2;
const opt_i32_constant: optional<i32> = 3;
const opt_i64_constant: optional<i64> = 4;
# opt_f32_constant has long documentation.
# (Second line of multi-line documentation.
# Indented third line of multi-line documentation.)
const opt_f32_constant: optional<f32> = 5.0;
const opt_f64_constant: optional<f64> = 5.0;
......
......@@ -38,12 +38,18 @@ struct Constants final {
static std::experimental::optional<int8_t> const OPT_I8_CONSTANT;
/** opt_i16_constant has documentation. */
static std::experimental::optional<int16_t> const OPT_I16_CONSTANT;
static std::experimental::optional<int32_t> const OPT_I32_CONSTANT;
static std::experimental::optional<int64_t> const OPT_I64_CONSTANT;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
static std::experimental::optional<float> const OPT_F32_CONSTANT;
static std::experimental::optional<double> const OPT_F64_CONSTANT;
......
......@@ -40,12 +40,18 @@ public:
static std::experimental::optional<int8_t> const OPT_I8_CONSTANT;
/** opt_i16_constant has documentation. */
static std::experimental::optional<int16_t> const OPT_I16_CONSTANT;
static std::experimental::optional<int32_t> const OPT_I32_CONSTANT;
static std::experimental::optional<int64_t> const OPT_I64_CONSTANT;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
static std::experimental::optional<float> const OPT_F32_CONSTANT;
static std::experimental::optional<double> const OPT_F64_CONSTANT;
......
......@@ -35,6 +35,7 @@ public final class Constants {
@CheckForNull
public static final Byte OPT_I8_CONSTANT = 1;
/** opt_i16_constant has documentation. */
@CheckForNull
public static final Short OPT_I16_CONSTANT = 2;
......@@ -44,6 +45,11 @@ public final class Constants {
@CheckForNull
public static final Long OPT_I64_CONSTANT = 4l;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
@CheckForNull
public static final Float OPT_F32_CONSTANT = 5.0f;
......
......@@ -35,6 +35,7 @@ public abstract class ConstantsInterface {
@CheckForNull
public static final Byte OPT_I8_CONSTANT = 1;
/** opt_i16_constant has documentation. */
@CheckForNull
public static final Short OPT_I16_CONSTANT = 2;
......@@ -44,6 +45,11 @@ public abstract class ConstantsInterface {
@CheckForNull
public static final Long OPT_I64_CONSTANT = 4l;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
@CheckForNull
public static final Float OPT_F32_CONSTANT = 5.0f;
......
......@@ -26,9 +26,15 @@ extern float const DBConstantsF32Constant;
extern double const DBConstantsF64Constant;
extern NSNumber * __nullable const DBConstantsOptBoolConstant;
extern NSNumber * __nullable const DBConstantsOptI8Constant;
/** opt_i16_constant has documentation. */
extern NSNumber * __nullable const DBConstantsOptI16Constant;
extern NSNumber * __nullable const DBConstantsOptI32Constant;
extern NSNumber * __nullable const DBConstantsOptI64Constant;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
extern NSNumber * __nullable const DBConstantsOptF32Constant;
extern NSNumber * __nullable const DBConstantsOptF64Constant;
extern NSString * __nonnull const DBConstantsStringConstant;
......
......@@ -19,9 +19,15 @@ extern float const DBConstantsInterfaceF32Constant;
extern double const DBConstantsInterfaceF64Constant;
extern NSNumber * __nullable const DBConstantsInterfaceOptBoolConstant;
extern NSNumber * __nullable const DBConstantsInterfaceOptI8Constant;
/** opt_i16_constant has documentation. */
extern NSNumber * __nullable const DBConstantsInterfaceOptI16Constant;
extern NSNumber * __nullable const DBConstantsInterfaceOptI32Constant;
extern NSNumber * __nullable const DBConstantsInterfaceOptI64Constant;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
extern NSNumber * __nullable const DBConstantsInterfaceOptF32Constant;
extern NSNumber * __nullable const DBConstantsInterfaceOptF64Constant;
extern NSString * __nonnull const DBConstantsInterfaceStringConstant;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment