Properly marshall diagnostic codes to the managed layer

This commit is contained in:
Cyrus Najmabadi 2014-10-07 13:31:21 -07:00
parent 0625cc4650
commit 0b7453b9d6

View file

@ -502,7 +502,8 @@ module ts {
start: diagnostic.start,
length: diagnostic.length,
/// TODO: no need for the tolowerCase call
category: DiagnosticCategory[diagnostic.category].toLowerCase()
category: DiagnosticCategory[diagnostic.category].toLowerCase(),
code: diagnostic.code
};
}