- 01 3月, 2016 24 次提交
-
-
由 David Poeschl 提交于
Code Style: Analyzer/Fixer/Options for naming conventions
-
由 David Poeschl 提交于
Implements #7064 This change includes: - An analyzer and codefix for enforcing naming styles and fixing symbol names to comply with a chosen & configurable set of naming rules. - A set of Enforcement Levels that can be applied to different naming rules. - A mechanism for linking from a lightbulb preview to the option that caused the related diagnostic to be created (could be moved to a different PR or release) - Moving of the "Formatting" options pages under the Code Style node.
-
由 Balaji Krishnan 提交于
Consume new use var options from CodeGen features This is part of #9155 Since, we replaced an existing user option about using var in local declarations with 3 new codestyle options, we need to update code generation features that were directly consuming these affected options. This PR, selectively handles updating the consumers of the obsolete option and moving them over to use the new options.
-
由 Balaji Krishnan 提交于
.. new use var options. If you don't set options, you get default options.
-
由 Balaji Krishnan 提交于
.. new use var options.
-
由 Balaji Krishnan 提交于
.. new use var options
-
由 Balaji Krishnan 提交于
.. the new use var codestyle options.
-
由 Manish Vasani 提交于
Reduce allocations for IsGeneratedCode analysis in the analyzer driver.
-
由 Balaji Krishnan 提交于
.. the new use var codestyle options.
-
由 Balaji Krishnan 提交于
... into a static helper class and share it at CSharpFeatures level. This is the first step towards getting the codegen features (introduce local, generate variable) to be able to use the new use var options correctly.
-
由 Manish Vasani 提交于
-
由 Balaji Krishnan 提交于
Implement a new options page for Code style features. Part of #9155 Summary of changes: 1. Implements a new options page for code styles. 2. Brings the new use var code style into this page. 3. Brings existing code styles into this page.
-
由 VSadov 提交于
Extra tests to cover combination of ref returns/locals and conditional access ( ?. ) operator.
-
由 Balaji Krishnan 提交于
-
由 Balaji Krishnan 提交于
.. the new CodeStyle options page.
-
由 Balaji Krishnan 提交于
.. Quick Launch bar
-
由 Balaji Krishnan 提交于
-
由 Balaji Krishnan 提交于
-
由 Balaji Krishnan 提交于
.. and remove dead code.
-
由 Balaji Krishnan 提交于
and reorder some members.
-
由 Balaji Krishnan 提交于
.. and comments that no longer apply.
-
由 Balaji Krishnan 提交于
.. the new CodeStyle options UI page. Notes: 1. UseVarForDeclarations - the option used by some features isn't onboard, it is to be replaced by the new use var options. 2. Since the existing options are part of public api, we keep the options' data structure as such and map the type to a corresponding view which is used to update the UI. Since they were all underlying boolean options, we introduce a BooleanCodeStyleOptionViewModel that maps to a CodeStyleOption type and back. 3. update the StyleViewModel to create options using these new view models.
-
由 Balaji Krishnan 提交于
This adds the xaml and a view model and plugs everything in to the current tools->options system.
-
由 Brett V. Forsgren 提交于
Require prohibit this me
-
- 29 2月, 2016 4 次提交
-
-
由 Balaji Krishnan 提交于
Use var codestyle updates Part of #9155 Change summary: Implements a fix all provider for the codestyle, and adds corresponding tests. Fixes an oversight with previous implementation of detecting built-in types.
-
由 Balaji Krishnan 提交于
-
由 Balaji Krishnan 提交于
If the preference is set to "use explicit type for built-in type" and if the code is non-compliant (uses var), then we need to flag this case and offer a fix. Basically, this adds to my definition of IsInIntrinsicContext. It is now either that the declaration has a predefined type or the declaration type is inferred and the inferred type is an intrinsic type. For the purposes of this feature, we also consider string and object to be built-in types, in addition to the actual intrinsic types provided by the compiler.
-
由 vsadov 提交于
Covering tricky cases where the receiver is a byref and we do not know whether it is of a value or a reference type. Those are cases when we do not know statically whether to clone the receiver (to prevent NREs) or pass as byref (for sideeffects propagation into receiver instance).
-
- 27 2月, 2016 7 次提交
-
-
由 Brett V. Forsgren 提交于
-
由 Brett V. Forsgren 提交于
-
由 Brett V. Forsgren 提交于
-
由 Brett V. Forsgren 提交于
-
由 Brett V. Forsgren 提交于
-
由 Brett V. Forsgren 提交于
Due to issues #7584 and #7587 adding `this.`/`Me.` is disabled for methods and events. Also add tests for verifying that no diagnostics are generated for static access or `base`/`MyBase` access.
-
由 Brett V. Forsgren 提交于
-
- 26 2月, 2016 5 次提交
-
-
由 Heejae Chang 提交于
Get support for squiggles and LB in "AnyCode" workspace
-
由 Heejae Chang 提交于
disable entry filter definition for now.
-
由 Balaji Krishnan 提交于
These tests were testing that replacement to var works where type is apparent. but they also had another rule that said prefer built-in types. so i update these tests to not use built-in types and replace them with their framework counterparts. That way we're now clearly testing if the fix works where type is apparent.
-
由 Heejae Chang 提交于
the base type we need to use EntryFilterDefinition is exchange type that needs to be moved to immutable dll. for more detail see https://github.com/dotnet/roslyn/issues/9096
-
由 Balaji Krishnan 提交于
The user option gets style preference for built-in types but the implementation checked only for built-in types used _with_ literals on the right hand side. I guess I had two different choices in mind - for built in types overall, or where we use literals in the right hand side and implemented half of both. Anyway, this clears that up - the option gets the preference for built-in types and the implementation checks for predefined types (not literals alone).
-