[Issue 9464] New: Redo .json output
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 6 12:51:33 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9464
Summary: Redo .json output
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-02-06 12:51:32 PST ---
This file should demonstrate the listed issues (and a few more):
---------------------------------------------------------
module test.json; // adds package list
// a pretty verbose reference to the module itself is added quite often
throughout the module
// object always listed as import (good?
bad?)
import std.ascii; // name is "std", but module is "test.json"!?
import stdstring = std.string; // name is "stdstring", std.string not shown
import std.algorithm : min, max; // name is "__anonymous", min/max not
specified
static import std.array; // kind "static import"
class TestClass
{
void func1(int a) // shows identical "type" and "originalType"
{ // with a type dictionary, parameters names should be
removed
}
int func(string s1, string s2) // shows both "type" and "originalType",
with different argument types
{ // "string" in originalType contains "idents" : [],
return 0; // and identical "identifier" and "rawIdentifier"
}
}
mixin template Mix(T)
{
T mixmember;
}
class DerivedClass : TestClass
{
mixin Mix!int; // listed as "mixin", but mixmember not added
override void func1(int a) // "overrides" contains full type ad
originalType of TestClass.func1
{
int b = min(a, 0); // adds "template instance" "min!(int, int,
)"
}
}
static assert("test" != "Test"); // adds "static assert" entry without any
sensible info
void main()
{
}
-----------------------------
-- reported by Rainer Schuetze
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list