19 references to Create
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
AbstractMoveDeclarationNearReferenceService.cs (1)
87? WarningAnnotation.Create(WorkspaceExtensionsResources.Warning_colon_Declaration_changes_scope_and_may_change_meaning)
UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
75WarningAnnotation.Create(AnalyzersResources.Changes_to_expression_trees_may_result_in_behavior_changes_at_runtime));
UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
89WarningAnnotation.Create(AnalyzersResources.Changes_to_expression_trees_may_result_in_behavior_changes_at_runtime));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
MakeLocalFunctionStaticCodeFixHelper.cs (1)
199var annotation = WarningAnnotation.Create(CSharpCodeFixesResources.Warning_colon_Adding_parameters_to_local_function_declaration_may_produce_invalid_code);
MisplacedUsingDirectivesCodeFixProvider.cs (1)
40private static readonly SyntaxAnnotation s_warningAnnotation = WarningAnnotation.Create(
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (2)
202WarningAnnotation.Create(CSharpFeaturesResources.Warning_Inlining_temporary_into_conditional_method_call)); 210WarningAnnotation.Create(CSharpFeaturesResources.Warning_Inlining_temporary_variable_may_change_code_meaning));
MakeLocalFunctionStaticCodeFixHelper.cs (1)
199var annotation = WarningAnnotation.Create(CSharpCodeFixesResources.Warning_colon_Adding_parameters_to_local_function_declaration_may_produce_invalid_code);
MisplacedUsingDirectivesCodeFixProvider.cs (1)
40private static readonly SyntaxAnnotation s_warningAnnotation = WarningAnnotation.Create(
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
126nameToken = nameToken.WithAdditionalAnnotations(WarningAnnotation.Create(warning));
Microsoft.CodeAnalysis.Features (7)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
71= CodeActions.WarningAnnotation.Create(
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
57=> WarningAnnotation.Create(FeaturesResources.Warning_colon_semantics_may_change_when_converting_statement);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (3)
452WarningAnnotation.Create(FeaturesResources.Warning_colon_Iteration_variable_crossed_function_boundary))); 484WarningAnnotation.Create(FeaturesResources.Warning_colon_Collection_was_modified_during_iteration)); 490WarningAnnotation.Create(FeaturesResources.Warning_colon_Iteration_variable_crossed_function_boundary));
UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
75WarningAnnotation.Create(AnalyzersResources.Changes_to_expression_trees_may_result_in_behavior_changes_at_runtime));
UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
89WarningAnnotation.Create(AnalyzersResources.Changes_to_expression_trees_may_result_in_behavior_changes_at_runtime));
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (1)
76propertyNameToken = propertyNameToken.WithAdditionalAnnotations(WarningAnnotation.Create(warning))
Microsoft.CodeAnalysis.Workspaces (1)
AbstractMoveDeclarationNearReferenceService.cs (1)
87? WarningAnnotation.Create(WorkspaceExtensionsResources.Warning_colon_Declaration_changes_scope_and_may_change_meaning)