Added fields needed by DCD

This commit is contained in:
Hackerpilot 2014-01-14 01:01:06 +00:00
parent 3e0a1c8aff
commit c08602e0b7
2 changed files with 8 additions and 0 deletions

View File

@ -2176,6 +2176,7 @@ public:
}
/** */ FunctionBody functionBody;
/** */ size_t location;
/** */ string comment;
}
///
@ -2188,6 +2189,7 @@ public:
}
/** */ FunctionBody functionBody;
/** */ size_t location;
/** */ string comment;
}
///

View File

@ -57,6 +57,12 @@ public template tok(string token)
}
enum extraFields = q{
string comment;
int opCmp(size_t i) const pure nothrow @safe {
if (index < i) return -1;
if (index > i) return 1;
return 0;
}
};
public alias stdx.lexer.TokenStructure!(IdType, extraFields) Token;