81 references to Submission
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder_Constraints.cs (1)
623case TypeKind.Submission:
Binder\Binder_Expressions.cs (4)
2323if (this.ContainingType.TypeKind == TypeKind.Submission 2327if (memberDeclaringType.TypeKind == TypeKind.Submission) 5168case TypeKind.Submission: 9300case TypeKind.Submission: // script class is synthesized and should not be used as a type of an indexer expression:
Binder\Binder_Lookup.cs (2)
198case TypeKind.Submission: 1881case TypeKind.Submission:
Binder\ForEachLoopBinder.cs (1)
1608case TypeKind.Submission:
Binder\Semantics\AccessCheck.cs (2)
367if (containingType.TypeKind == TypeKind.Submission) 429if (originalContainingType.TypeKind == TypeKind.Submission)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
2486if (m1.Member.ContainingType.TypeKind == TypeKind.Submission && m2.Member.ContainingType.TypeKind == TypeKind.Submission)
Compiler\ClsComplianceChecker.cs (1)
1005case TypeKind.Submission:
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
15Debug.Assert(targetType.TypeKind == TypeKind.Submission);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
602case TypeKind.Submission:
Symbols\ConstraintsHelper.cs (2)
285case TypeKind.Submission: 1477case TypeKind.Submission:
Symbols\EnumConversions.cs (1)
24return TypeKind.Submission;
Symbols\NamedTypeSymbol.cs (2)
432return TypeKind == TypeKind.Submission; 451var name = (TypeKind == TypeKind.Submission) ? SynthesizedEntryPointSymbol.FactoryName : SynthesizedEntryPointSymbol.MainName;
Symbols\Source\SourceEventSymbol.cs (1)
603else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourceMemberContainerSymbol.cs (4)
318case TypeKind.Submission: 3271case TypeKind.Submission: 3504case TypeKind.Submission: 4847builder.AddNonTypeMember((this.TypeKind == TypeKind.Submission) ?
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
520case TypeKind.Submission: // we have to check that "override" is not used
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
44TypeKind is not (TypeKind.Enum or TypeKind.Delegate or TypeKind.Submission)) 613case TypeKind.Submission:
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
874else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
529if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Symbol.cs (3)
258if (ContainingType?.TypeKind == TypeKind.Submission) 280if (ContainingType.TypeKind == TypeKind.Submission) 291Debug.Assert(ContainingType.TypeKind != TypeKind.Submission);
Symbols\Symbol_Attributes.cs (1)
88case TypeKind.Submission:
Symbols\SymbolExtensions.cs (2)
84return superType.TypeKind == TypeKind.Submission && subType.TypeKind == TypeKind.Submission;
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
19Debug.Assert(containingType.TypeKind == TypeKind.Submission);
Symbols\TypeSymbolExtensions.cs (6)
706case TypeKind.Submission: 795case TypeKind.Submission: 836case TypeKind.Submission: 1164if (ReferenceEquals(parent2.OriginalDefinition, parent1OriginalDefinition) || parent1OriginalDefinition.TypeKind == TypeKind.Submission && parent2.TypeKind == TypeKind.Submission) 1528case TypeKind.Submission:
Utilities\TypeSymbolExtensions.cs (1)
196case TypeKind.Submission:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (1)
53if (symbol.ContainingType.TypeKind == TypeKind.Submission)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
275if (symbol.ContainingType.TypeKind != TypeKind.Submission)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ScriptSemanticsTests.cs (1)
602Assert.NotEqual(TypeKind.Submission, type.TypeKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (1)
53if (symbol.ContainingType.TypeKind == TypeKind.Submission)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
275if (symbol.ContainingType.TypeKind != TypeKind.Submission)
Microsoft.CodeAnalysis.VisualBasic (27)
Binding\Binder_Expressions.vb (2)
2605If currentType.TypeKind = TYPEKIND.Submission AndAlso Not currentMember.IsShared Then 2606If memberDeclaringType.TypeKind = TYPEKIND.Submission Then
Binding\Binder_Lookup.vb (2)
583Case TypeKind.Submission 612Case TypeKind.Submission
Compilation\ClsComplianceChecker.vb (2)
595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
Emit\NamedTypeSymbolAdapter.vb (1)
236If AdaptedNamedTypeSymbol.TypeKind = TypeKind.Submission Then
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.vb (1)
15Debug.Assert(targetType.TypeKind = TypeKind.Submission)
Semantics\AccessCheck.vb (2)
232If containingType.TypeKind = TypeKind.Submission Then 287If originalContainingType.TypeKind = TypeKind.Submission Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
255TypeKind.Submission
Symbols\NamedTypeSymbol.vb (2)
572Return TypeKind = TypeKind.Submission 588Dim name = If(TypeKind = TypeKind.Submission, SynthesizedEntryPointSymbol.FactoryName, SynthesizedEntryPointSymbol.MainName)
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
58Return If(Me.TypeKind = TypeKind.Submission, Nothing, baseType)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
41Submission = CUShort(TypeKind.Submission) << TypeKindShift 346Case TypeKind.Module, TypeKind.Submission 2724If TypeKind = TypeKind.Submission Then 2803If TypeKind = TypeKind.Submission Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1375Case TypeKind.Submission
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
27Debug.Assert(container.TypeKind = TypeKind.Submission)
Symbols\Symbol.vb (3)
98If ContainingType.TypeKind = TypeKind.Submission Then 112If ContainingType.TypeKind = TypeKind.Submission Then 119Debug.Assert(ContainingType.TypeKind <> TypeKind.Submission)
Symbols\Symbol_Attributes.vb (1)
113Case TypeKind.Submission
Symbols\TypeSymbolExtensions.vb (3)
414Case TypeKind.Error, TypeKind.Class, TypeKind.Submission 845Case TypeKind.Submission 857TypeKind.Submission,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (1)
40If symbol.ContainingType.TypeKind = TypeKind.Submission Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
160If symbol.ContainingType.TypeKind = TypeKind.Submission Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenScriptTests.vb (1)
249Assert.NotEqual(type.TypeKind, TypeKind.Submission)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxGeneratorVisitor.vb (1)
40If symbol.ContainingType.TypeKind = TypeKind.Submission Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
160If symbol.ContainingType.TypeKind = TypeKind.Submission Then