public Property(LanguageSyntaxNode node, string name, SymbolPropertyOwner owner, Type ownerType) { SyntaxReference = node?.GetReference(); Name = name; Owner = owner; OwnerType = ownerType; }
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; }
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>); } }
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));