104 references to Character
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
185CharacterNumber = linePosSpan.StartLinePosition.Character + 1;
dotnet (2)
_generated\17\RunFileApiJsonSerializerContext.LinePosition.g.cs (2)
80Getter = static obj => ((global::Microsoft.CodeAnalysis.Text.LinePosition)obj).Character, 103writer.WriteNumber(PropName_Character, ((global::Microsoft.CodeAnalysis.Text.LinePosition)value).Character);
dotnet-format (2)
FileChange.cs (1)
22CharNumber = changePosition.Character + 1;
Logging\ILoggerExtensions.cs (1)
20=> LogIssue(logger, document, diagnostic.Severity.ToString().ToLower(), diagnostic.Id, diagnosticPosition.Line + 1, diagnosticPosition.Character + 1, diagnostic.GetMessage(), changesAreErrors);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.CodeAnalysis (20)
CodeGen\SequencePointList.cs (2)
179int startColumn = fileLinePositionSpan.StartLinePosition.Character + 1; 180int endColumn = fileLinePositionSpan.EndLinePosition.Character + 1;
CommandLine\SarifErrorLogger.cs (2)
51_writer.Write("startColumn", span.StartLinePosition.Character + 1); 53_writer.Write("endColumn", span.EndLinePosition.Character + 1);
Diagnostic\DiagnosticFormatter.cs (1)
79return string.Format("({0},{1})", span.Start.Line + 1, span.Start.Character + 1);
Diagnostic\Location.cs (2)
115result += "(" + pos.Path + "@" + (pos.StartLinePosition.Line + 1) + ":" + (pos.StartLinePosition.Character + 1) + ")"; 144result += "(" + pos.Path + "@" + (pos.StartLinePosition.Line + 1) + ":" + (pos.StartLinePosition.Character + 1) + ")";
Syntax\LineDirectiveMap.cs (6)
74return (mappedLine == -1) ? new LinePosition(unmapped.Character) : new LinePosition(mappedLine, unmapped.Character); 84unmappedStartPos.Character < entry.UnmappedCharacterOffset.GetValueOrDefault()) 98entry.MappedSpan.Start.Character + unmapped.Character - entry.UnmappedCharacterOffset.GetValueOrDefault() : 99unmapped.Character);
Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Text\LinePosition.cs (5)
107return other.Line == this.Line && other.Character == this.Character; 124return Hash.Combine(Line, Character); 133return Line + "," + Character; 139return (result != 0) ? result : _character.CompareTo(other.Character);
Text\TextLineCollection.cs (1)
70return this[position.Line].Start + position.Character;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.CodeAnalysis.CSharp (10)
CommandLine\CommandLineDiagnosticFormatter.cs (3)
34span.Start.Character + 1, 36span.End.Character + 1); 42span.Start.Character + 1);
Compilation\CSharpSemanticModel.cs (1)
5291var characterNumberOneIndexed = lineSpan.Character + 1;
Emitter\Model\PEModuleBuilder.cs (2)
472span.StartLinePosition.Character, 474span.EndLinePosition.Character));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
510span.StartLinePosition.Character, 512span.EndLinePosition.Character));
Parser\Blender.cs (1)
151var column = oldTree.SyntaxTree.GetLineSpan(new TextSpan(start, 0)).Span.Start.Character;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1308diagnostics.Add(ErrorCode.ERR_InterceptorMustReferToStartOfTokenPosition, attributeLocation, referencedToken.Text, linePositionZeroBased.Line + 1, linePositionZeroBased.Character + 1);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
401|| document.Text.Lines.GetLinePosition(document.Text.Length).Character == 0)
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
175var offsetOfBasePosition = baseLinePosition.Character;
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
401|| document.Text.Lines.GetLinePosition(document.Text.Length).Character == 0)
Microsoft.CodeAnalysis.Features (19)
BraceCompletion\AbstractBraceCompletionService.cs (1)
65var caretLocation = new LinePosition(originalOpeningLinePosition.Line, originalOpeningLinePosition.Character + 1);
CodeLens\CodeLensReferencesService.cs (2)
153startLinePosition.Character, 273result.LinePositionSpan.Start.Character,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2356if (oldMappedSpan.Span.Start.Character != newMappedSpan.Span.Start.Character)
EditAndContinue\ActiveStatementsMap.cs (10)
256? unmappedSection.Start.Character + mappedSpan.Start.Character - mappedSection.Start.Character 257: mappedSpan.Start.Character; 260? unmappedSection.Start.Character + mappedSpan.End.Character - mappedSection.Start.Character 261: mappedSpan.End.Character; 274var start = lines[lineSpan.Start.Line].Start + lineSpan.Start.Character; 275var end = lines[lineSpan.End.Line].Start + lineSpan.End.Character;
EditAndContinue\Utilities\Extensions.cs (4)
21=> new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); 36=> new(span.Start.Line, span.Start.Character, span.End.Line, span.End.Character);
Microsoft.CodeAnalysis.Razor.Compiler (33)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (6)
936location.Character, 939endLocation.Character); 949location.Character, 952location.Character); 965location.Character, 968location.Character);
Language\DefaultTagHelperResolutionPhase.cs (12)
852new SourceSpan(filePath, exprStart, atLoc.Line, atLoc.Character, 1, 0, atLoc.Character + 1))); 863new SourceSpan(filePath, exprStart, loc.Line, loc.Character, exprLength, 0, loc.Character + exprLength))); 884new SourceSpan(filePath, parenStart, openLoc.Line, openLoc.Character, 1, 0, openLoc.Character + 1))); 896new SourceSpan(filePath, innerStart, innerLoc.Line, innerLoc.Character, innerLen, 0, innerLoc.Character + innerLen))); 904new SourceSpan(filePath, closePos, closeLoc.Line, closeLoc.Character, 1, 0, closeLoc.Character + 1))); 922.WithCharacterIndex(exprLoc.Character) 924.WithEndCharacterIndex(exprLoc.Character + expressionSource.Length);
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (6)
1342expr.Source = new SourceSpan(exprSource.FilePath, contentStart, openLoc.Line, openLoc.Character, contentLength, 0, closeLoc.Character + 1); 1352contentLocation.Character, 1355contentLocation.Character + contentLength); 1456emptySpan = new SourceSpan(nextSrc.FilePath, nextSrc.AbsoluteIndex, loc.Line, loc.Character, 0, 0, loc.Character);
Language\Legacy\RoslynCSharpTokenizer.cs (2)
593characterIndex: linePosition.Character, 606characterIndex: linePosition.Character,
Language\SourceLocation.cs (1)
44: this(filePath, absoluteIndex, linePosition.Line, linePosition.Character)
Language\SpanComputer.cs (2)
115return new SourceSpan(source.FilePath, absoluteIndex: start, startLinePosition.Line, startLinePosition.Character, length, lineCount, endLinePosition.Character);
Language\Syntax\SyntaxNodeExtensions.cs (4)
67endsWithLineBreak ? 0 : lastLocation.Character + 1); 102endsWithLineBreak ? 0 : lastLocation.Character + 1); 123return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, node.Width, lineCount, endLocation.Character); 131return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, token.Width, lineCount, endLocation.Character);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.CodeAnalysis.VisualBasic (4)
Emit\PEModuleBuilder.vb (2)
288span.StartLinePosition.Character, 290span.EndLinePosition.Character))
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (2)
463span.StartLinePosition.Character, 465span.EndLinePosition.Character))
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\FileLinePositionSpanExtensions.cs (2)
47var startColumn = Math.Max(span.Start.Character, 0); 48var endColumn = Math.Max(span.End.Character, 0);
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingInvocationDescription.cs (1)
33 return new SimpleLocation(FilePath, LineSpan.Start.Line + 1, LineSpan.Start.Character + 1);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
79message = $"Unexpected difference at offset {index}: Line {position.Line + 1}, Column {position.Character + 1} \"{line.ToString()}\" (Found: [{found}] Expected: [{expected}])";