22 references to File
Microsoft.CodeAnalysis.CSharp (10)
Compilation\CSharpCompilation.cs (1)
1274return ReferenceDirectiveMap.TryGetValue((directive.SyntaxTree.FilePath, directive.File.ValueText), out reference) ? reference : null;
Declarations\DeclarationTreeBuilder.cs (3)
307d => !d.File.ContainsDiagnostics && !string.IsNullOrEmpty(d.File.ValueText)); 316directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new SourceLocation(directiveNode)));
Syntax.xml.Main.Generated.cs (1)
2233=> node.Update(VisitToken(node.HashToken), VisitToken(node.ReferenceKeyword), VisitToken(node.File), VisitToken(node.EndOfDirectiveToken), node.IsActive);
Syntax.xml.Syntax.Generated.cs (5)
16529if (hashToken != this.HashToken || referenceKeyword != this.ReferenceKeyword || file != this.File || endOfDirectiveToken != this.EndOfDirectiveToken) 16540public new ReferenceDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.ReferenceKeyword, this.File, this.EndOfDirectiveToken, this.IsActive); 16541public ReferenceDirectiveTriviaSyntax WithReferenceKeyword(SyntaxToken referenceKeyword) => Update(this.HashToken, referenceKeyword, this.File, this.EndOfDirectiveToken, this.IsActive); 16544public new ReferenceDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.ReferenceKeyword, this.File, endOfDirectiveToken, this.IsActive); 16545public ReferenceDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.ReferenceKeyword, this.File, this.EndOfDirectiveToken, isActive);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (2)
14221Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind()); 14224var newNode = node.WithHashToken(node.HashToken).WithReferenceKeyword(node.ReferenceKeyword).WithFile(node.File).WithEndOfDirectiveToken(node.EndOfDirectiveToken).WithIsActive(node.IsActive);
LexicalAndXml\PreprocessorTests.cs (1)
218Assert.Equal(exp.Text, ((ReferenceDirectiveTriviaSyntax)dt).File.ValueText);
Syntax\StructuredTriviaTests.cs (8)
111Assert.Equal("ref0", directives[0].File.Value); 112Assert.Equal("ref1", directives[1].File.Value); 113Assert.Equal("ref2", directives[2].File.Value); 125Assert.Equal("ref0", directives[0].File.Value); 149Assert.True(directives[0].File.IsMissing); 150Assert.False(directives[1].File.IsMissing); 151Assert.Equal("", directives[1].File.Value); 152Assert.Equal("a", directives[2].File.Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
319AddClassification(node.File, ClassificationTypeNames.StringLiteral);