~/talk

Analyzing source code using Roslyn

links:none on file
slides:none on file

Shows how Roslyn parses student C# submissions on exercism.io, then normalizes code, detects patterns, and compiles to run tests. Demonstrates concrete analyzers that find method overloading and suggest optional parameters, replace default null with a string literal, recommend string interpolation and expression-bodied members, and rewrite AST nodes to normalize whitespace, usings, comments and identifiers. Builds an in-memory assembly from a Project using MSBuildWorkspace and runs xUnit tests via the runner; uses Roslyn syntax trees to transform and compare solutions.

AI-written summary · about

  1. 0:00Start
  2. 15:42start by just looking at the properties of the class
  3. 30:29modify some parts of the syntax tree functionality
  4. 42:50normalize identifiers
  5. 50:47run x unit in memory
  6. 52:37output the number of errors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.