99 references to Localize
Microsoft.CodeAnalysis.CSharp (99)
Binder\Binder.ValueChecks.cs (10)
736
Error(diagnostics, ErrorCode.ERR_BadSKknown, node, ns.NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.
Localize
(), MessageID.IDS_SK_VARIABLE.
Localize
());
741
Error(diagnostics, ErrorCode.ERR_BadSKknown, node, type.Type, MessageID.IDS_SK_TYPE.
Localize
(), MessageID.IDS_SK_VARIABLE.
Localize
());
752
Error(diagnostics, GetMethodGroupOrFunctionPointerLvalueError(valueKind), node, unconvertedAddressOf.Operand.Name, MessageID.IDS_AddressOfMethodGroup.
Localize
());
763
Error(diagnostics, GetMethodGroupOrFunctionPointerLvalueError(valueKind), node, methodGroup.Name, MessageID.IDS_MethodGroup.
Localize
());
1017
Error(diagnostics, ErrorCode.ERR_BadSKknown, expr.Syntax, ((BoundNamespaceExpression)expr).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.
Localize
(), MessageID.IDS_SK_VARIABLE.
Localize
());
1020
Error(diagnostics, ErrorCode.ERR_BadSKunknown, expr.Syntax, expr.Type, MessageID.IDS_SK_TYPE.
Localize
());
3122
Error(diagnostics, ReadOnlyLocalErrors[index], node, local, cause.
Localize
());
Binder\Binder_Await.cs (1)
180
new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitWithoutAsyncLambda, ((LambdaSymbol)method).MessageID.
Localize
());
Binder\Binder_Expressions.cs (5)
2778
diagnostics.Add(ErrorCode.ERR_NoExplicitConv, syntax.Location, MessageID.IDS_SK_METHOD.
Localize
(), targetType);
2952
nameString = MessageID.IDS_Lambda.
Localize
().ToString();
7645
diagnostics.Add(ErrorCode.ERR_BadUnaryOp, node.Location, SyntaxFacts.GetText(operatorToken.Kind()), msgId.
Localize
());
7904
Error(diagnostics, ErrorCode.ERR_BadSKunknown, methodGroup.NameSyntax, method, MessageID.IDS_SK_METHOD.
Localize
());
11119
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadUnaryOp, SyntaxFacts.GetText(operatorToken.Kind()), msgId.
Localize
());
Binder\Binder_Invocation.cs (2)
174
msgId.
Localize
(),
175
MessageID.IDS_SK_METHOD.
Localize
());
Binder\Binder_Lookup.cs (4)
1780
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_HasNoTypeVars, namedType, MessageID.IDS_SK_TYPE.
Localize
()) : null;
1785
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadArity, namedType, MessageID.IDS_SK_TYPE.
Localize
(), namedType.Arity) : null;
1801
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_HasNoTypeVars, method, MessageID.IDS_SK_METHOD.
Localize
()) : null;
1806
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadArity, method, MessageID.IDS_SK_METHOD.
Localize
(), method.Arity) : null;
Binder\Binder_Query.cs (4)
949
diagnostics.Add(ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax.Location, ((BoundNamespaceExpression)ultimateReceiver).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.
Localize
());
954
diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_AnonMethod.
Localize
(), methodName);
970
diagnostics.Add(ErrorCode.ERR_QueryNoProvider, node.Location, MessageID.IDS_SK_METHOD.
Localize
(), methodName);
982
Error(diagnostics, ErrorCode.ERR_BadSKunknown, ultimateReceiver.Syntax, ultimateReceiver.Type, MessageID.IDS_SK_TYVAR.
Localize
());
Binder\Binder_Statements.cs (5)
1607
return MessageID.IDS_ArrayAccess.
Localize
();
1611
return MessageID.IDS_PointerElementAccess.
Localize
();
2030
var id = anonymousFunction.MessageID.
Localize
();
3384
lambda.MessageID.
Localize
(), lambda.ReturnType);
3391
lambda.MessageID.
Localize
());
Binder\Binder_Symbols.cs (3)
340
var diagnosticInfo = diagnostics.Add(ErrorCode.ERR_BadSKknown, syntax.Location, syntax, symbol.Symbol.GetKindText(), MessageID.IDS_SK_TYPE.
Localize
());
1378
Error(diagnostics, ErrorCode.ERR_BadArity, typeSyntax, type, MessageID.IDS_SK_TYPE.
Localize
(), typeArgumentsSyntax.Count);
1413
Error(diagnostics, ErrorCode.ERR_BadArity, syntax, plainName, MessageID.IDS_MethodGroup.
Localize
(), typeArgumentsSyntax.Count);
Binder\ForEachLoopBinder.cs (4)
1450
diagnostics.Add(ErrorCode.WRN_PatternNotPublicOrNotInstance, collectionSyntax.Location, patternType, patternName.
Localize
(), result);
1485
diagnostics.Add(ErrorCode.WRN_PatternIsAmbiguous, collectionSyntax.Location, patternType, MessageID.IDS_Collection.
Localize
(),
1556
diagnostics.Add(ErrorCode.WRN_PatternIsAmbiguous, collectionSyntax.Location, collectionExpr.Type, MessageID.IDS_Collection.
Localize
(),
1715
diagnostics.Add(ErrorCode.WRN_PatternBadSignature, collectionSyntax.Location, enumeratorType, MessageID.IDS_Collection.
Localize
(), patternMemberCandidate);
Binder\LookupResult.cs (1)
204
var diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadSKknown, unwrappedSymbol.Name, unwrappedSymbol.GetKindText(), MessageID.IDS_SK_TYPE.
Localize
()) : null;
BoundTree\Formatting.cs (8)
39
get { return ConstantValueOpt?.IsNull == true ? MessageID.IDS_NULL.
Localize
() : base.Display; }
47
get { return this.MessageID.
Localize
(); }
55
get { return this.MessageID.
Localize
(); }
63
get { return MessageID.IDS_MethodGroup.
Localize
(); }
71
get { return MessageID.IDS_ThrowExpression.
Localize
(); }
161
=> (Type is null) ? MessageID.IDS_FeatureSwitchExpression.
Localize
() : base.Display;
167
=> (Type is null) ? MessageID.IDS_FeatureTargetTypedConditional.
Localize
() : base.Display;
173
=> (Type is null) ? MessageID.IDS_FeatureCollectionExpressions.
Localize
() : base.Display;
BoundTree\UnboundLambda.cs (2)
855
diagnostics.Add(ErrorCode.ERR_AnonymousReturnExpected, lambdaSymbol.DiagnosticLocation, this.MessageID.
Localize
(), delegateType);
871
diagnostics.Add(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, lambdaSymbol.DiagnosticLocation, lambdaSymbol.MessageID.
Localize
(), delegateType);
CommandLine\CSharpCommandLineParser.cs (19)
208
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "/langversion:");
417
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), name);
618
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "modulename");
666
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), arg);
679
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), arg);
687
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "/doc:"); // Different argument.
699
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "/addmodule:");
791
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), name);
1048
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "keycontainer");
1110
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "subsystemversion");
1131
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), "touchedfiles");
1604
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_PathList.
Localize
(), switchName);
1613
AddDiagnostic(diagnostics, ErrorCode.WRN_InvalidSearchPathDir, path, origin.
Localize
(), MessageID.IDS_DirectoryHasInvalidPath.
Localize
());
1617
AddDiagnostic(diagnostics, ErrorCode.WRN_InvalidSearchPathDir, path, origin.
Localize
(), MessageID.IDS_DirectoryDoesNotExist.
Localize
());
1856
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Namespace1.
Localize
(), arg);
1870
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), arg);
1897
AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.
Localize
(), arg);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
303
var subMessage = hasFileAttribute ? MessageID.IDS_XMLMISSINGINCLUDEPATH.
Localize
() : MessageID.IDS_XMLMISSINGINCLUDEFILE.
Localize
();
Errors\MessageID.cs (3)
457
return new CSDiagnosticInfo(ErrorCode.ERR_FeatureIsExperimental, feature.
Localize
(), requiredFeature);
462
? new CSDiagnosticInfo(ErrorCode.ERR_FeatureInPreview, feature.
Localize
())
463
: new CSDiagnosticInfo(availableVersion.GetErrorCode(), feature.
Localize
(), new CSharpRequiredLanguageVersion(requiredVersion));
FlowAnalysis\NullableWalker.cs (2)
8728
unboundLambda.MessageID.
Localize
(),
8739
unboundLambda.MessageID.
Localize
(),
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2161
diagnostics.Add(ErrorCode.ERR_OverloadRefKind, method1.GetFirstLocation(), this, methodKind.
Localize
(), refKind1.ToParameterDisplayString(), refKind2.ToParameterDisplayString());
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1419
diagnostics.Add(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, syntax.Location, type, (isParam ? MessageID.IDS_Parameter : MessageID.IDS_Return).
Localize
());
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
835
MessageID.IDS_SK_TYPE_OR_NAMESPACE.
Localize
());
Symbols\SymbolKindExtensions.cs (15)
21
return MessageID.IDS_SK_NAMESPACE.
Localize
();
23
return MessageID.IDS_SK_TYPE.
Localize
();
25
return MessageID.IDS_SK_TYVAR.
Localize
();
27
return MessageID.IDS_SK_ARRAY.
Localize
();
29
return MessageID.IDS_SK_POINTER.
Localize
();
31
return MessageID.IDS_SK_FUNCTION_POINTER.
Localize
();
33
return MessageID.IDS_SK_DYNAMIC.
Localize
();
35
return MessageID.IDS_SK_METHOD.
Localize
();
37
return MessageID.IDS_SK_PROPERTY.
Localize
();
39
return MessageID.IDS_SK_EVENT.
Localize
();
41
return MessageID.IDS_SK_FIELD.
Localize
();
45
return MessageID.IDS_SK_VARIABLE.
Localize
();
47
return MessageID.IDS_SK_ALIAS.
Localize
();
49
return MessageID.IDS_SK_LABEL.
Localize
();
53
return MessageID.IDS_SK_UNKNOWN.
Localize
();
Symbols\TypeSymbol.cs (2)
1646
feature.
Localize
(),
1747
MessageID.IDS_FeatureStaticAbstractMembersInInterfaces.
Localize
(),
Symbols\VarianceSafety.cs (4)
474
diagnostics.Add(ErrorCode.ERR_UnexpectedVarianceStaticMember, location, context, unsafeTypeParameter, actualVariance.
Localize
(), expectedVariance.
Localize
(),
479
diagnostics.Add(ErrorCode.ERR_UnexpectedVariance, location, context, unsafeTypeParameter, actualVariance.
Localize
(), expectedVariance.
Localize
());