Пример #1
0
 protected override void EmitIndexedPropertyDeprecationWarning(Property deprecated)
 {
     if (ActiveEnvironment.Instance == null)
     {
         return;
     }
     My <CompilerWarningCollection> .Instance.Add(
         CompilerWarningFactory.ObsoleteSyntax(deprecated,
                                               FormatPropertyWithDelimiters(deprecated, "(", ")"),
                                               FormatPropertyWithDelimiters(deprecated, "[", "]")));
 }
Пример #2
0
 protected override void EmitTransientKeywordDeprecationWarning(LexicalInfo location)
 {
     if (OutsideCompilationEnvironment())
     {
         return;
     }
     EmitWarning(
         CompilerWarningFactory.ObsoleteSyntax(
             location,
             "transient keyword",
             "[Transient] attribute"));
 }
Пример #3
0
 protected override void EmitIndexedPropertyDeprecationWarning(Property deprecated)
 {
     if (OutsideCompilationEnvironment())
     {
         return;
     }
     EmitWarning(
         CompilerWarningFactory.ObsoleteSyntax(
             deprecated,
             FormatPropertyWithDelimiters(deprecated, "(", ")"),
             FormatPropertyWithDelimiters(deprecated, "[", "]")));
 }