30 references to Line
Microsoft.CodeAnalysis.CSharp (8)
Syntax.xml.Main.Generated.cs (1)
2218
=> node.Update(VisitToken(node.HashToken), VisitToken(node.LineKeyword), VisitToken(node.
Line
), VisitToken(node.File), VisitToken(node.EndOfDirectiveToken), node.IsActive);
Syntax.xml.Syntax.Generated.cs (6)
16208
if (hashToken != this.HashToken || lineKeyword != this.LineKeyword || line != this.
Line
|| file != this.File || endOfDirectiveToken != this.EndOfDirectiveToken)
16219
public new LineDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.LineKeyword, this.
Line
, this.File, this.EndOfDirectiveToken, this.IsActive);
16221
public new LineDirectiveTriviaSyntax WithLineKeyword(SyntaxToken lineKeyword) => Update(this.HashToken, lineKeyword, this.
Line
, this.File, this.EndOfDirectiveToken, this.IsActive);
16224
public new LineDirectiveTriviaSyntax WithFile(SyntaxToken file) => Update(this.HashToken, this.LineKeyword, this.
Line
, file, this.EndOfDirectiveToken, this.IsActive);
16226
public new LineDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.LineKeyword, this.
Line
, this.File, endOfDirectiveToken, this.IsActive);
16227
public LineDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.LineKeyword, this.
Line
, this.File, this.EndOfDirectiveToken, isActive);
Syntax\CSharpLineDirectiveMap.cs (1)
50
SyntaxToken lineToken = directive.
Line
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
145
if (lineDirective.
Line
.Kind() == SyntaxKind.DefaultKeyword)
150
else if (lineDirective.
Line
.Kind() == SyntaxKind.NumericLiteralToken &&
151
lineDirective.
Line
.Value is int)
153
info = new ExternalSourceInfo((int)lineDirective.
Line
.Value, false);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (2)
14141
Assert.Equal(SyntaxKind.NumericLiteralToken, node.
Line
.Kind());
14145
var newNode = node.WithHashToken(node.HashToken).WithLineKeyword(node.LineKeyword).WithLine(node.
Line
).WithFile(node.File).WithEndOfDirectiveToken(node.EndOfDirectiveToken).WithIsActive(node.IsActive);
LexicalAndXml\PreprocessorTests.cs (5)
228
Assert.Equal(SyntaxKind.DefaultKeyword, ld.
Line
.Kind());
233
Assert.Equal(SyntaxKind.HiddenKeyword, ld.
Line
.Kind());
237
Assert.Equal(String.Empty, ld.
Line
.Text);
241
Assert.Equal(exp.Number, ld.
Line
.Value); // Number
242
Assert.Equal(exp.Number, Int32.Parse(ld.
Line
.Text));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\Worker_Preprocesser.cs (3)
240
switch (node.
Line
.Kind())
244
AddClassification(node.
Line
, ClassificationTypeNames.PreprocessorKeyword);
247
AddClassification(node.
Line
, ClassificationTypeNames.NumericLiteral);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
145
if (lineDirective.
Line
.Kind() == SyntaxKind.DefaultKeyword)
150
else if (lineDirective.
Line
.Kind() == SyntaxKind.NumericLiteralToken &&
151
lineDirective.
Line
.Value is int)
153
info = new ExternalSourceInfo((int)lineDirective.
Line
.Value, false);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
145
if (lineDirective.
Line
.Kind() == SyntaxKind.DefaultKeyword)
150
else if (lineDirective.
Line
.Kind() == SyntaxKind.NumericLiteralToken &&
151
lineDirective.
Line
.Value is int)
153
info = new ExternalSourceInfo((int)lineDirective.
Line
.Value, false);