Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 internal ICharacteristicTypeSymbol BindCharacteristicTypeSymbol(CharacteristicNode node, DiagnosticBag diagnostics) =>
 BindSimple <ICharacteristicTypeSymbol, ErrorSymbols.ErrorCharacteristicTypeSymbol>(
     node, diagnostics, node.TypeId, LookupOptions.CharacteristicTypeOnly);