internal override void ResolveTopLevelNames() { if (_unresolvedType != null) { base.ResolveTopLevelNames(); } if (_typeSubElement != null) { _typeSubElement.ResolveTopLevelNames(); } }
internal override void ResolveTopLevelNames() { if (_typeSubElement != null) { _typeSubElement.ResolveTopLevelNames(); } // Can't be "else if" because element could have attribute AND sub-element, // in which case semantic validation won't work unless it has resolved both (so _type is not null) if (_unresolvedType != null) { base.ResolveTopLevelNames(); } }
internal override void ResolveTopLevelNames() { // If type was defined as an attribute: <ReturnType Type="int"/> if (_unresolvedType != null) { base.ResolveTopLevelNames(); } // If type was defined as a subelement: <ReturnType><CollectionType>...</CollectionType></ReturnType> if (_typeSubElement != null) { _typeSubElement.ResolveTopLevelNames(); } }
internal override void ResolveTopLevelNames() { // If type was defined as an attribute: <ReturnType Type="int"/> if (_unresolvedType != null) { base.ResolveTopLevelNames(); } // If type was defined as a subelement: <ReturnType><CollectionType>...</CollectionType></ReturnType> if (_typeSubElement != null) { Debug.Assert( !ParentElement.IsFunctionImport, "FunctionImports can't have sub elements in their return types, so we should NEVER see them here"); _typeSubElement.ResolveTopLevelNames(); } if (ParentElement.IsFunctionImport && _unresolvedEntitySet != null) { ((FunctionImportElement)ParentElement).ResolveEntitySet(this, _unresolvedEntitySet, ref _entitySet); } }