internal TypeRefContext(PhpCompilation compilation, SourceTypeSymbol selfType, SourceTypeSymbol thisType)
 {
     _compilation = compilation ?? throw ExceptionUtilities.ArgumentNull(nameof(compilation));
     _selfType    = selfType;
     _thisType    = thisType;
 }
 private TransformationRewriter(DelayedTransformations delayedTransformations, SourceRoutineSymbol routine)
 {
     _delayedTransformations = delayedTransformations;
     _routine = routine ?? throw ExceptionUtilities.ArgumentNull(nameof(routine));
 }
Exemple #3
0
 private PhpSyntaxTree(PhpSourceUnit source)
 {
     _source = source ?? throw ExceptionUtilities.ArgumentNull(nameof(source));
 }
Exemple #4
0
 public BoundIndirectTypeRef(BoundExpression typeExpression, bool objectTypeInfoSemantic)
 {
     _typeExpression        = typeExpression ?? throw ExceptionUtilities.ArgumentNull();
     ObjectTypeInfoSemantic = objectTypeInfoSemantic;
 }
Exemple #5
0
 public BoundGenericClassTypeRef(IBoundTypeRef targetType, ImmutableArray <BoundTypeRef> typeArguments)
 {
     _targetType    = targetType ?? throw ExceptionUtilities.ArgumentNull(nameof(targetType));
     _typeArguments = typeArguments;
 }
Exemple #6
0
 public Conversions(PhpCompilation compilation)
 {
     _compilation = compilation ?? throw ExceptionUtilities.ArgumentNull();
 }
Exemple #7
0
 public AdditionalSyntaxProvider(PhpTokenProvider provider, NodesFactory nodes, Func <QualifiedNameRef, bool, TypeRef> typeRefFactory)
 {
     _provider       = provider ?? throw ExceptionUtilities.ArgumentNull();
     _nodes          = nodes ?? throw ExceptionUtilities.ArgumentNull();
     _typeRefFactory = typeRefFactory ?? throw ExceptionUtilities.ArgumentNull();
 }
 public OverloadsList(MethodSymbol method)
 {
     _single  = method ?? throw ExceptionUtilities.ArgumentNull();
     _methods = default;
 }