-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#/Java: Respect manual neutrals, sources and sinks in model generation. #16722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#/Java: Respect manual neutrals, sources and sinks in model generation. #16722
Conversation
1fd3586
to
f1f8654
Compare
|
9623eff
to
6da9b73
Compare
catch (Exception e) | ||
{ | ||
ExtractionContext.Logger.LogDebug($"Failed to compute absolute path for relative path in line mapping: '{mappedToPath}': {e}"); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions] | ||
{ | ||
fileLogger.Log(Severity.Error, " Unhandled exception: {0}", ex); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause
6da9b73
to
6e3a5a9
Compare
cf6ab3a
to
ea065b6
Compare
ea065b6
to
7fb9780
Compare
…ation and allow source generation for all source kinds.
a2d4063
to
24685a0
Compare
DCA looks good; Java integration test failure is unrelated to this PR. |
In this PR we create separate classes of callables to be used by the dataflow configurations for the source, sink and summary callable target classes for model generation. Furthermore, we
IMO we should also avoid lifting sources or sinks the same way we do for summaries due to the following reason (this will also become easier to implement with the different classes for summary, source and sink callables): Contrary to summaries - sources and sinks have more granular kinds. As an example, we could imagine an interface or abstract class for writing to a stream. Depending on the implementation the stream writer could write to maybe the console, a file, a database, a log, etc. which could all be of different kinds (of sinks). That is, if we are lifting sinks we would then get a union of these kinds and the prototype implementation would become a "universal" sink.