コード例 #1
0
 public Property(LanguageSyntaxNode node, string name, SymbolPropertyOwner owner, Type ownerType)
 {
     SyntaxReference = node?.GetReference();
     Name            = name;
     Owner           = owner;
     OwnerType       = ownerType;
 }
コード例 #2
0
 public BoundProperty(BoundKind kind, BoundTree boundTree, ImmutableArray <object> childBoundNodes, string name, Optional <object> valueOpt, SymbolPropertyOwner owner, Type ownerType, LanguageSyntaxNode syntax, bool hasErrors = false)
     : base(kind, boundTree, childBoundNodes, syntax, hasErrors)
 {
     _name          = name;
     _hasFixedValue = valueOpt.HasValue;
     _value         = valueOpt.HasValue ? valueOpt.Value : default;
     _owner         = owner;
     _ownerType     = ownerType;
 }
コード例 #3
0
 public PropertyBinder(Binder next, string propertyName, Optional <object> propertyValueOpt, SymbolPropertyOwner owner, Type ownerType)
     : base(next)
 {
     _propertyName     = propertyName;
     _propertyValueOpt = propertyValueOpt;
     _owner            = owner;
     _ownerType        = ownerType;
     if (_propertyValueOpt.HasValue)
     {
         _lazyValues = ImmutableArray.Create(_propertyValueOpt.Value);
     }
     else
     {
         _lazyValues = default(ImmutableArray <object>);
     }
 }
コード例 #4
0
 protected virtual Binder CreatePropertyBinder(Binder parentBinder, SyntaxNodeOrToken syntax, string name, SymbolPropertyOwner owner = SymbolPropertyOwner.CurrentSymbol, Type ownerType = null)
 {
     return(this.CreatePropertyBinderCore(parentBinder, syntax, name, default, owner, ownerType));