Source

gdc / gdc.test / compilable / ddoc1.d

// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddoc1-postscript.sh
// REQUIRED_ARGS: -d

/** This module is for ABC
 * Copyright: Copyright © $(YEAR)
 */

module abc;

string foos = "foo";

alias int myint; ///
typedef int mytypedefint;

/** windy
 * city
 *
 * paragraph 2 about of F $$(NAME)
 * -----
 * #include <stdio.h>
  * void main()
 * {
 *	printf("hello\n");
 * }
 * -----
 * Copyright: 1998
 */
myint f;
enum E { e } /// comment1
int g; /// comment2
private int h; /// comment for H
static int i;
int j;
wchar LS = 0x2028;	/// UTF line separator
wchar PS = 0x2029;	/// UTF paragraph separator

wchar _XX;	/// ditto
wchar YY;	/// ditto

/** Function foo takes argument c and adds it to argulid.
 *
 * Then it munges argulid, u <u>underline</u>. <!-- c, argulid, b -->
 * Params:
 *	c = the character which adds c to argulid
 *	argulid = the argument
 *	u = the other argument
 */
int foo(char c, int argulid, char u);

int barr() { return 3; } /// doc for barr()

/++ The Class Bar +/
class Bar
{
    int x;	/// member X
    int y;	/// member Y
    protected int z;	/// member Z
}

/++ The Enum Easy +/

enum Easy : int
{
	red,	/// the Red
	blue,	/// the Blue
	green,	/// the Green
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.