33 references to _emptyCompilation
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (33)
CodeGeneration\SyntaxGeneratorTests.cs (33)
277var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 315var genericType = _emptyCompilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T); 318var arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)); 405var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 406var listType = _emptyCompilation.GetTypeByMetadataName("System.Collections.Generic.List`1"); 854_emptyCompilation.GetSpecialType(SpecialType.System_Int32), 855_emptyCompilation.GetSpecialType(SpecialType.System_String) 988var gcHandleType = _emptyCompilation.GetTypeByMetadataName(typeof(GCHandle).FullName); 996var doubleType = _emptyCompilation.GetSpecialType(SpecialType.System_Decimal); 998m.Name == WellKnownMemberNames.ImplicitConversionName && m.Parameters[0].Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte))); 2156Generator.Declaration(_emptyCompilation.GetTypeByMetadataName("System.ComponentModel.INotifyPropertyChanged")), 2168_emptyCompilation.GetTypeByMetadataName("System.IntPtr").GetMembers("ToPointer").Single()), 2179_emptyCompilation.GetTypeByMetadataName("System.DateTimeKind")), 2193_emptyCompilation.GetTypeByMetadataName("System.Security.SecurityRuleSet")), 2205var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2219var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2240var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2261var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2282var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2303var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2325var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2343var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2361var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2389var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2417var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2444var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2476var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2530var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2548var compilation = _emptyCompilation. 2558compilation = _emptyCompilation.AddReferences(reference); 2571var field = _emptyCompilation.GetSpecialType(SpecialType.System_UInt32).GetMembers(nameof(UInt32.MaxValue)).Single(); 2581var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree("""