Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Damir Arh, Adacta d.o.o.
MVP - .NET
@Damir Arh
http://www.damirscorner.com
Diagnostični analizatorji
v Visual Studiu 2015
Diagnostični analizator?
Kako?
Zakaj?
Kaj?
.NET Compiler Platform
Formatter
Colorizer
Outlining
NavigateTo
Object
Browser
Completion
List
FindAll
References
Rename
Q...
Kaj?
NuGet
Načini distribucije
VSIX
Uporabnost analizatorjev
Zahtevana programska oprema
http://bit.ly/VS2015rc
http://bit.ly/VS2015SDKrc
http://bit.ly/RoslynSdkTemplatesRc
http://bit...
using System.Text.RegularExpressions;
namespace RegExSample
{
public class Class1
{
public void Foo()
{
Regex.Match("", "[...
Sintaktično drevo
InvocationExpression
SimpleMemberAccessExpression
IdentifierName
Regex
WhitespaceTrivia
. IdentifierName...
Strukturiranje izvorne kode
Workspace
Solution
Project
Metadata
Reference
Document ImmutableArray<Diagnostic>
CompilationW...
Uporabne povezave
http://bit.ly/RoslynOverview
http://bit.ly/DotNetConfAnalyzersVideo
http://bit.ly/MsdnMagLiveCodeAnalyze...
• Prevajalnik kot storitev
• Prenovljen urejevalnik
• Lažje dostopna analiza kode
• Avtomatični popravki
Oživitev dokument...
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Diagnostic Analyzers in Visual Studio 2015
Upcoming SlideShare
Loading in …5
×

Diagnostic Analyzers in Visual Studio 2015

1,015 views

Published on

What are diagnostic analyzers, why would one need them and how to develop them

Published in: Technology
  • Be the first to comment

Diagnostic Analyzers in Visual Studio 2015

  1. 1. Damir Arh, Adacta d.o.o. MVP - .NET @Damir Arh http://www.damirscorner.com Diagnostični analizatorji v Visual Studiu 2015
  2. 2. Diagnostični analizator? Kako? Zakaj? Kaj?
  3. 3. .NET Compiler Platform Formatter Colorizer Outlining NavigateTo Object Browser Completion List FindAll References Rename QuickInfo Signature Help Extract Method GoTo Definition Editand Continue Syntax Tree API Symbol API Binding and Analysis API Emit API Parser Symbols Binder IL Emitter Metadata Import
  4. 4. Kaj?
  5. 5. NuGet Načini distribucije VSIX
  6. 6. Uporabnost analizatorjev
  7. 7. Zahtevana programska oprema http://bit.ly/VS2015rc http://bit.ly/VS2015SDKrc http://bit.ly/RoslynSdkTemplatesRc http://bit.ly/RoslynSyntaxVisualizerRc
  8. 8. using System.Text.RegularExpressions; namespace RegExSample { public class Class1 { public void Foo() { Regex.Match("", "["); } } }
  9. 9. Sintaktično drevo InvocationExpression SimpleMemberAccessExpression IdentifierName Regex WhitespaceTrivia . IdentifierName Match ArgumentList ( Argument StringLiteralExpression "" , WhitespaceTrivia Argument StringLiteralExpression "[" )
  10. 10. Strukturiranje izvorne kode Workspace Solution Project Metadata Reference Document ImmutableArray<Diagnostic> CompilationWithAnalyzers GetAnalyzerDiagnosticsAsync() Compilation WithAnalyzers() Project GetCompilationAsync()
  11. 11. Uporabne povezave http://bit.ly/RoslynOverview http://bit.ly/DotNetConfAnalyzersVideo http://bit.ly/MsdnMagLiveCodeAnalyzer http://bit.ly/MsdnMagCodeFix http://bit.ly/DotNetAnalyzers http://bit.ly/CodeCrackerAnalyzers http://bit.ly/CSharpEssentials
  12. 12. • Prevajalnik kot storitev • Prenovljen urejevalnik • Lažje dostopna analiza kode • Avtomatični popravki Oživitev dokumentov s pravili kodiranja Veliko novosti

×