Skip to content

Commit

Permalink
Removed compiler flag "warnDeprecated"
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Oct 17, 2024
1 parent 6d4153c commit 8d25816
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ void collect(current: (Expression) `<Expression expression> ( <{Expression ","}*
if(ft:afunc(AType ret, list[AType] formals, list[Keyword] kwFormals) := tp){
try {
// TODO: turn this on after review of all @deprecated uses in the Rascal library library
if(ft.deprecationMessage? && c.getConfig().warnDeprecated){
if(ft.deprecationMessage?){
s.report(warning(expression, "Deprecated function%v", isEmpty(ft.deprecationMessage) ? "" : ": " + ft.deprecationMessage));
}
Expand Down Expand Up @@ -641,7 +641,7 @@ void collect(current: (Expression) `<Expression expression> ( <{Expression ","}*
if(ft:afunc(AType ret, list[AType] formals, list[Keyword] kwFormals) := texp){
// TODO; texp can get type value and then texp.deprecationMessage does not exist
if(texp.deprecationMessage? && c.getConfig().warnDeprecated){
if(texp.deprecationMessage?){
s.report(warning(expression, "Deprecated function%v", isEmpty(texp.deprecationMessage) ? "": ": " + texp.deprecationMessage));
}
return checkArgsAndComputeReturnType(expression, scope, ret, formals, kwFormals, ft.varArgs, actuals, keywordArguments, [true | int _ <- index(formals)], s);
Expand Down

0 comments on commit 8d25816

Please sign in to comment.