Using shorthand property assignment in compiler

LKG and use short-hand property assignment in compiler
i would rename the variable diagnostics to be errors, or rename the property in the interface to be diagnostics. i would prefer renaming errors to diagnostics as this is more accurate.