Skip to content

Commit

Permalink
feat: Update playground generations for all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Jul 21, 2019
1 parent 5360d9a commit bb31964
Show file tree
Hide file tree
Showing 11 changed files with 631 additions and 559 deletions.
34 changes: 20 additions & 14 deletions playground/test.coffee
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
###
@description TODO
[TODO:description]
@function myFunc
###
myFunc = () -> x * x

###
@description TODO
[TODO:description]
@function myFunc
@param {*} x TODO
@param {[TODO:type]} x [TODO:description]
###
myFunc = (x) -> x * x

###
@description TODO
[TODO:description]
@function myFunc
@param {*} x TODO
@param {[TODO:type]} x [TODO:description]
###
myFunc = (x) => x * x

###
@description TODO
[TODO:description]
@function myFunc
@param {*} p1 TODO
@param {*} p2 TODO
@param {*} p3 TODO
@param {[TODO:type]} p1 [TODO:description]
@param {[TODO:type]} p2 [TODO:description]
@param {[TODO:type]} p3 [TODO:description]
###
myFunc = (p1, p2, p3) -> x * x

###
@description TODO
[TODO:description]
@function myFunc
@param {*} $p1 TODO
@param {*} $p2 TODO
@param {*} $p3 TODO
@param {[TODO:type]} $p1 [TODO:description]
@param {[TODO:type]} $p2 [TODO:description]
@param {[TODO:type]} $p3 [TODO:description]
###
myFunc = ($p1, $p2, $p3) => x * x

###
@description TODO
[TODO:description]
@function String#dasherize
###
String::dasherize = ->
Expand Down
118 changes: 56 additions & 62 deletions playground/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,78 +3,74 @@
// =============================================================================

/**
* TODO
* [TODO:description]
*
* @param text TODO
* @param node TODO
* @return TODO
* @param text [TODO:description]
* @param node [TODO:description]
*/
void Emitter::append_token(const std::string& text, const AST_Node* node)
{
//
}

/**
* [TODO:description]
* @return [TODO:description]
*/
std::vector<std::string> someFunction();

/**
* TODO
*
* @return TODO
* [TODO:description]
* @return [TODO:description]
*/
const next_layer_type& my_func()
{
//
}

/**
* TODO
* [TODO:description]
*
* @param text TODO
* @return TODO
* @param text [TODO:description]
* @return [TODO:description]
*/
lowest_layer_type& my_func(std::string& text)
{
//
}

/**
* TODO
* [TODO:description]
*
* @param v TODO
* @param ec TODO
* @return TODO
* @param v [TODO:description]
* @param ec [TODO:description]
* @return [TODO:description]
*/
ASIO_SYNC_OP_VOID myFunc(
verify_mode v, asio::error_code& ec)
{
//
}

/**
* TODO
*
* @param line TODO
* @return TODO
*/
std::string trimLine(const std::string &line);

/**
* TODO
* [TODO:description]
*
* @param e TODO
* @return TODO
* @param e [TODO:description]
* @return [TODO:description]
*/
inline project::error_code my_func(ssl_errors e)
{
//
}

/**
* TODO
* [TODO:description]
*
* @param type TODO
* @param handler TODO
* @return TODO
* @param type [TODO:description]
* @param handler [TODO:description]
* @return [TODO:description]
*/
template <typename HandshakeHandler>
INITFN_RESULT_TYPE(HandshakeHandler, void (project::error_code))
Expand All @@ -84,34 +80,33 @@ myFunc(handshake_type type, MOVE_ARG(HandshakeHandler) handler)
}

/**
* TODO
* [TODO:description]
*
* @param it_begin TODO
* @param _end TODO
* @return TODO
* @param it_begin [TODO:description]
* @param _end [TODO:description]
* @return [TODO:description]
*/
template<typename T>
Vector(std::enable_if<is_foreach_iterator<T>, T>::type& it_begin, T& _end) {
assert(N == std::distance(it_begin, it_end));
}

/**
* TODO
* [TODO:description]
*
* @param p TODO
* @return TODO
* @param p [TODO:description]
*/
void f(A* p = this)
{
//
}

/**
* TODO
* [TODO:description]
*
* @param a TODO
* @param b TODO
* @return TODO
* @param a [TODO:description]
* @param b [TODO:description]
* @return [TODO:description]
*/
template <class T>
T GetMax (T a, T b) {
Expand All @@ -121,11 +116,10 @@ T GetMax (T a, T b) {
}

/**
* TODO
* [TODO:description]
*
* @param i TODO
* @param args TODO
* @return TODO
* @param i [TODO:description]
* @param args [TODO:description]
*/
template<class...T> void h(int i = 0, T... args) {
//
Expand All @@ -136,11 +130,11 @@ template<class...T> void h(int i = 0, T... args) {
// =============================================================================

/**
* TODO
* [TODO:description]
*
* @param it_begin TODO
* @param _end TODO
* @return TODO
* @param it_begin [TODO:description]
* @param _end [TODO:description]
* @return [TODO:description]
*/
template<auto n>
auto f(std::enable_if<is_foreach_iterator<T>, T>::type& it_begin, T& _end) -> std::pair<decltype(n), decltype(n)> // test
Expand All @@ -149,10 +143,10 @@ auto f(std::enable_if<is_foreach_iterator<T>, T>::type& it_begin, T& _end) -> st
}

/**
* TODO
* [TODO:description]
*
* @param args TODO
* @return TODO
* @param args [TODO:description]
* @return [TODO:description]
*/
template<typename T, typename... Args>
static T* create(Args&& ... args)
Expand All @@ -161,35 +155,35 @@ static T* create(Args&& ... args)
}

/**
* TODO
* [TODO:description]
*
* @param args TODO
* @return TODO
* @param args [TODO:description]
* @return [TODO:description]
*/
template<> static T* create(Args&& ... args);

/**
* TODO
* [TODO:description]
*
* @param j TODO
* @param val TODO
* @return TODO
* @param j [TODO:description]
* @param val [TODO:description]
* @return [TODO:description]
*/
template<typename BasicJsonType, typename ValueType>
static auto
from_json(BasicJsonType&& j, ValueType& val)
static auto
from_json(BasicJsonType&& j, ValueType& val)
noexcept(noexcept(::somename::from_json(std::forward<BasicJsonType>(j), val)))
-> decltype(::somename::from_json(std::forward<BasicJsonType>(j), val), void())
{
//
}

/**
* TODO
* [TODO:description]
*
* @param fun TODO
* @param args TODO
* @return TODO
* @param fun [TODO:description]
* @param args [TODO:description]
* @return [TODO:description]
*/
template<class F, class... Args>
decltype(auto) PerfectForward(F fun, Args&&... args)
Expand Down
Loading

0 comments on commit bb31964

Please sign in to comment.