72 references to Compilation
Microsoft.CodeAnalysis.VisualBasic (72)
Lowering\LocalRewriter\LocalRewriter.vb (2)
145
Return Me.
Compilation
.Options.OptimizationLevel = OptimizationLevel.Debug
884
TypeSymbol.Equals(node.Type,
Compilation
.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.AllIgnoreOptionsForVB))
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (4)
97
Dim tokenType As NamedTypeSymbol = Me.
Compilation
.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationToken)
98
Dim marshalType As NamedTypeSymbol = Me.
Compilation
.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_WindowsRuntimeMarshal)
100
Dim actionType As NamedTypeSymbol = Me.
Compilation
.GetWellKnownType(WellKnownType.System_Action_T)
120
Dim func2Type As NamedTypeSymbol = Me.
Compilation
.GetWellKnownType(WellKnownType.System_Func_T2)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (2)
448
Dim getObjectValueMethod = DirectCast(
Compilation
.GetWellKnownTypeMember(getObjectValue), MethodSymbol)
469
memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(memberId), MethodSymbol)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (7)
580
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(memberId), MethodSymbol)
631
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(memberId), MethodSymbol)
686
Dim embeddedOperatorsType As NamedTypeSymbol =
Compilation
.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_CompilerServices_EmbeddedOperators)
691
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(compareStringMember), MethodSymbol)
723
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
755
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
784
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
Lowering\LocalRewriter\LocalRewriter_Call.vb (9)
24
If method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Strings__AscWCharInt32) Then
55
If method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Interaction__CallByName) Then
57
ElseIf method.ContainingSymbol Is
Compilation
.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_Information) Then
58
If method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Information__IsNumeric) Then
60
ElseIf method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Information__SystemTypeName) Then
62
ElseIf method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Information__TypeName) Then
64
ElseIf method Is
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Information__VbTypeName) Then
70
Dim remappedMethod = DirectCast(
Compilation
.GetWellKnownTypeMember(remappedMethodId), MethodSymbol)
82
method Is
Compilation
.GetWellKnownTypeMember(
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (17)
517
Return New CompoundUseSiteInfo(Of AssemblySymbol)(_diagnostics, Me.
Compilation
.Assembly)
777
result = RewriteFromObjectConversion(rewrittenConversion,
Compilation
.GetSpecialType(SpecialType.System_Object), underlyingTypeTo)
793
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
863
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
950
memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
1026
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
1064
memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(memberId), MethodSymbol)
1163
memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
1210
Dim mathRound As MethodSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(memberId), MethodSymbol)
1242
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Math__CeilingDouble)
1244
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Math__FloorDouble)
1246
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Math__RoundDouble)
1250
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntSingle)
1252
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntDouble)
1269
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixSingle)
1271
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixDouble)
1276
Return node.Method = Me.
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Math__TruncateDouble)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (5)
416
Debug.Assert(
Compilation
.GetSpecialType(SpecialType.System_Object) Is rewrittenControlVariable.Type)
445
Compilation
.GetSpecialType(SpecialType.System_Boolean),
449
arguments,
Compilation
.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True)
500
Compilation
.GetSpecialType(SpecialType.System_Boolean),
504
arguments,
Compilation
.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (2)
63
Debug.Assert(targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_FormattableString)) OrElse
64
targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_IFormattable)))
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
382
Dim useSiteInfo As New CompoundUseSiteInfo(Of AssemblySymbol)(Me.
Compilation
.Assembly)
969
Dim memberSymbol = Binder.GetWellKnownTypeMember(Me.
Compilation
, memberId, useSiteInfo)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
284
Me.
Compilation
.GetSpecialType(SpecialType.System_Boolean), hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (3)
80
Me.
Compilation
.GetSpecialType(SpecialType.System_Object)),
82
Me.
Compilation
.GetSpecialType(SpecialType.System_Boolean)).MakeCompilerGenerated
118
Dim getOrCreateMethod As MethodSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (1)
95
Compilation
.GetSpecialType(SpecialType.System_Void)))
Lowering\LocalRewriter\LocalRewriter_Return.vb (1)
18
Not (Me._currentMethodOrLambda.IsAsync AndAlso Me._currentMethodOrLambda.ReturnType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)))))
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (5)
158
Dim embeddedOperatorsType As NamedTypeSymbol =
Compilation
.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_CompilerServices_EmbeddedOperators)
164
Dim compareStringMethod = DirectCast(
Compilation
.GetWellKnownTypeMember(compareStringMember), MethodSymbol)
171
Me.ReportBadType(selectCaseExpr,
Compilation
.GetSpecialType(SpecialType.System_Int32))
172
Me.ReportBadType(selectCaseExpr,
Compilation
.GetSpecialType(SpecialType.System_UInt32))
173
Me.ReportBadType(selectCaseExpr,
Compilation
.GetSpecialType(SpecialType.System_String))
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (4)
122
If method Is Me.
Compilation
.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringString) OrElse
123
method Is Me.
Compilation
.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringString) OrElse
124
method Is Me.
Compilation
.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringStringString) Then
131
If method Is Me.
Compilation
.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringArray) Then
Lowering\LocalRewriter\LocalRewriter_Try.vb (2)
198
Dim setProjectErrorMethod As MethodSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(setProjectError), MethodSymbol)
203
Dim clearProjectErrorMethod = DirectCast(
Compilation
.GetWellKnownTypeMember(clearProjectError), MethodSymbol)
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
128
Dim memberSymbol = DirectCast(
Compilation
.GetWellKnownTypeMember(member), MethodSymbol)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (4)
187
Debug.Assert(TypeSymbol.Equals(objCreation.ConstructorOpt.ContainingType, Me.
Compilation
.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything))
189
constructor = DirectCast(Me.
Compilation
.GetWellKnownTypeMember(If(origSideEffects.Length = 1,
201
Debug.Assert(TypeSymbol.Equals(constructor.ContainingType, Me.
Compilation
.GetWellKnownType(WellKnownType.System_Xml_Linq_XDocument), TypeCompareKind.ConsiderEverything))
315
Dim method = DirectCast(
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Xml_Linq_XNamespace__Get), MethodSymbol)