diagnostic analyzers in visual studio 2015
TRANSCRIPT
Damir Arh, Adacta d.o.o.MVP - .NET@Damir Arhhttp://www.damirscorner.com
Diagnostični analizatorji v Visual Studiu 2015
.NET Compiler Platform
Formatter
Colorizer
Outlining
Navigate To
Object Browser
Completion List
Find
All Reference
s
Rename
Quick Info
Signature Help
Extract
Method
Go To Definition
Edit
and
Continue
Syntax Tree API Symbol API Binding and
Analysis API Emit API
Parser
Symbols
Binder IL EmitterMetadata
Import
Language
Service
Compiler API
Compiler
Pipeline
Zahtevana programska opremahttp://bit.ly/VS2015rc http://bit.ly/VS2015SDKrc http://bit.ly/RoslynSdkTemplatesRc http://bit.ly/RoslynSyntaxVisualizerRc
using System.Text.RegularExpressions; namespace RegExSample{ public class Class1 { public void Foo() { Regex.Match("", "["); } }}
Preverjanje regularnih izrazov
Sintaktično drevo
InvocationExpression
SimpleMemberAccessExpression
IdentifierName
Regex
WhitespaceTrivia
. IdentifierName
Match
ArgumentList
( Argument
StringLiteralExpression
""
,
WhitespaceTrivia
Argument
StringLiteralExpression
"["
)
Strukturiranje izvorne kodeWorkspac
e
SolutionSolution
ProjectProject
MetadataReferenc
e
MetadataReferenc
eDocumen
tDocumen
t ImmutableArray<Diagnostic>
CompilationWithAnalyzersGetAnalyzerDiagnosticsAsync()
CompilationWithAnalyzers()
ProjectGetCompilationAsync()
Uporabne povezavehttp://bit.ly/RoslynOverviewhttp://bit.ly/DotNetConfAnalyzersVideohttp://bit.ly/MsdnMagLiveCodeAnalyzerhttp://bit.ly/MsdnMagCodeFixhttp://bit.ly/DotNetAnalyzershttp://bit.ly/CodeCrackerAnalyzershttp://bit.ly/CSharpEssentials
• Prevajalnik kot storitev• Prenovljen urejevalnik• Lažje dostopna analiza kode• Avtomatični popravki
Oživitev dokumentov s pravili kodiranja
Veliko novosti
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.