Added fields needed by DCD
This commit is contained in:
parent
3e0a1c8aff
commit
c08602e0b7
|
@ -2176,6 +2176,7 @@ public:
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
/** */ size_t location;
|
/** */ size_t location;
|
||||||
|
/** */ string comment;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2188,6 +2189,7 @@ public:
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
/** */ size_t location;
|
/** */ size_t location;
|
||||||
|
/** */ string comment;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -57,6 +57,12 @@ public template tok(string token)
|
||||||
}
|
}
|
||||||
enum extraFields = q{
|
enum extraFields = q{
|
||||||
string comment;
|
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;
|
public alias stdx.lexer.TokenStructure!(IdType, extraFields) Token;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue