public override Binder VisitCharacteristic(CharacteristicNode node) { var next = DefaultVisit(node); var profileSymbol = GetProfileSymbol(node.FirstAncestorOrSelf <ProfileNode>() !, next) ?? throw new InvalidOperationException("Profile symbol required."); return(new CharacteristicBinder(next, profileSymbol)); }
internal ICharacteristicTypeSymbol BindCharacteristicTypeSymbol(CharacteristicNode node, DiagnosticBag diagnostics) => BindSimple <ICharacteristicTypeSymbol, ErrorSymbols.ErrorCharacteristicTypeSymbol>( node, diagnostics, node.TypeId, LookupOptions.CharacteristicTypeOnly);