protected override void EmitIndexedPropertyDeprecationWarning(Property deprecated) { if (ActiveEnvironment.Instance == null) { return; } My <CompilerWarningCollection> .Instance.Add( CompilerWarningFactory.ObsoleteSyntax(deprecated, FormatPropertyWithDelimiters(deprecated, "(", ")"), FormatPropertyWithDelimiters(deprecated, "[", "]"))); }
protected override void EmitTransientKeywordDeprecationWarning(LexicalInfo location) { if (OutsideCompilationEnvironment()) { return; } EmitWarning( CompilerWarningFactory.ObsoleteSyntax( location, "transient keyword", "[Transient] attribute")); }
protected override void EmitIndexedPropertyDeprecationWarning(Property deprecated) { if (OutsideCompilationEnvironment()) { return; } EmitWarning( CompilerWarningFactory.ObsoleteSyntax( deprecated, FormatPropertyWithDelimiters(deprecated, "(", ")"), FormatPropertyWithDelimiters(deprecated, "[", "]"))); }