257 references to GetSemanticModel
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (73)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
894var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 946var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\CodeGenAwaitForeachTests.cs (30)
935var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 1660var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 1720var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 1864var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 1901var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 1941var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 1978var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 2012var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 2968var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3033var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3118var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3236var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3291var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3349var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3545var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3593var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 3714var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 4461var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 4535var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 4645var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 4744var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 5048var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 5129var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 5355var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 6438var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false); 9106var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9182var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9260var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9321var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9392var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\CodeGenDeconstructTests.cs (1)
7066var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\CodeGenForEachTests.cs (1)
1757var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\CodeGenLocalFunctionTests.cs (1)
145var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\CodeGenTupleTest.cs (35)
1608var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 5472var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8290var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8321var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8376var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8405var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8434var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8482var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8516var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8549var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8578var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8625var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8660var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8689var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8718var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8748var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8803var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8833var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8892var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8939var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9012var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9069var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9141var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9222var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9305var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 16538var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 16565var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 16602var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17209var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17270var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17329var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17367var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17400var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 17433var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 27566var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\GotoTest.cs (2)
1147var model = CreateCompilationWithMscorlib461(new[] { tree }).GetSemanticModel(tree, ignoreAccessibility: false); 1160var model = CreateCompilationWithMscorlib461(new[] { tree }).GetSemanticModel(tree, ignoreAccessibility: false);
CodeGen\IndexAndRangeTests.cs (1)
3859var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Emit\NumericIntPtrTests.cs (5)
11176var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 11199var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 11227var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 11252var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 11297var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
Attributes\AttributeTests_RefReadOnly.cs (4)
1377var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 1419var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 1448var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 1475var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
Diagnostics\DiagnosticAnalyzerTests.cs (2)
4048model = ((CSharpCompilation)compilation).GetSemanticModel(tree, ignoreAccessibility: false); 4256var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Diagnostics\GetDiagnosticsTests.cs (2)
671var model = compilation.GetSemanticModel(tree, true); 724var model = compilation.GetSemanticModel(tree, true);
Semantics\PatternMatchingTests.cs (1)
6574var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\PatternMatchingTests_ListPatterns.cs (7)
3318var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4084var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4171var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4248var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4362var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4404var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 4555var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\PatternMatchingTests5.cs (5)
426var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 563var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 794var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 840var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 894var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\PrimaryConstructorTests.cs (7)
419var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 960var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 1002var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 7793var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8755var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 9161var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 21640var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\RecordTests.cs (5)
281var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 447var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 479var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 2488var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 28392var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IVariableDeclaration.cs (1)
924var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (130)
Semantics\BindingTests.cs (1)
3937var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\ColorColorTests.cs (1)
1815var semanticModel = comp.GetSemanticModel(syntaxTree, false);
Semantics\DeconstructionTests.cs (1)
3942var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\GenericConstraintsTests.cs (1)
2876var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\IndexAndRangeTests.cs (9)
896var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 916var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 937var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1120var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1249var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1282var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1315var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1339var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 1382var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\InitOnlyMemberTests.cs (2)
2519var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 3138var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\LambdaDiscardParametersTests.cs (6)
69var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 418var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 447var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 481var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 512var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 567var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\LambdaTests.cs (1)
8154var model = (SyntaxTreeSemanticModel)comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\LocalFunctionTests.cs (2)
345var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 440var model = comp.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\NativeIntegerTests.cs (6)
15320var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 15341var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 15364var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 15392var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 15415var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 15445var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\NullableReferenceTypesTests.cs (53)
4525var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 4561var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 4593var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56075var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56105var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56138var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56175var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56210var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56244var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56275var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56303var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56342var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56376var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56407var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56436var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56471var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56507var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56586var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 56618var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 71781var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145376var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145417var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145457var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145495var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145533var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145571var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145604var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145637var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145676var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145951var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 145982var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 146015var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 146299var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 146338var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 146378var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 146417var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 155996var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 156745var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 157580var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 157628var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158060var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158096var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158191var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158229var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158270var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158310var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158344var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158381var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158476var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158524var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158566var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158603var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 158814var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\RecordStructTests.cs (14)
533var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 553var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 573var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 595var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 2306var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 2330var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 3288var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 3336var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 3387var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 5848var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 5890var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 6924var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 7605var model = comp.GetSemanticModel(tree, ignoreAccessibility: false); 8810var model = comp.GetSemanticModel(tree, ignoreAccessibility: false);
Semantics\RefLocalsAndReturnsTests.cs (7)
4752var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4780var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4808var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4836var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4864var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4892var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 4926var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\ScriptSemanticsTests.cs (17)
520var model = CreateCompilationWithMscorlib461(new[] { tree }).GetSemanticModel(tree, ignoreAccessibility: false); 536var model = CreateCompilationWithMscorlib461(new[] { tree }).GetSemanticModel(tree, ignoreAccessibility: false); 1182var semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1194semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1209semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1218semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1227semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1239semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1251semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1276var semanticModel1 = compilation.GetSemanticModel(syntaxTree1, true); 1277var semanticModel2 = compilation.GetSemanticModel(syntaxTree2, true); 1288semanticModel1 = compilation.GetSemanticModel(syntaxTree1, true); 1289semanticModel2 = compilation.GetSemanticModel(syntaxTree2, true); 1309var semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1323semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1338semanticModel = compilation.GetSemanticModel(syntaxTree, true); 1353semanticModel = compilation.GetSemanticModel(syntaxTree, true);
Semantics\SuppressAccessibilityChecksTests.cs (4)
47return compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); 121var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 167var semanticModel = compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); 213var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Semantics\TopLevelStatementsTests.cs (5)
6242semanticModel = comp.GetSemanticModel(syntaxTree, ignoreAccessibility: true); 6279var semanticModel = comp.GetSemanticModel(syntaxTree, ignoreAccessibility: true); 6324var semanticModel1 = comp.GetSemanticModel(syntaxTree1, ignoreAccessibility); 6375var semanticModel1 = comp.GetSemanticModel(syntaxTree1, ignoreAccessibility); 6381var semanticModel2 = comp.GetSemanticModel(syntaxTree2, ignoreAccessibility);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\SemanticModelAPITests.cs (2)
1479model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); 2839model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);
Symbols\Source\FileModifierTests.cs (10)
1232var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 1366var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 1432var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 1490var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 1804var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 1879var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); 3643var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 3713var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 3775var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false); 3816var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\LambdaUtilitiesTests.cs (1)
45var model = compilation.GetSemanticModel(tree, ignoreAccessibility: false);
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\DiagnosticLocalizationTests.cs (1)
312getSemanticModel: tree => compilation.GetSemanticModel(tree, ignoreAccessibility: true),
Diagnostics\OperationTests.cs (1)
276var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true);