Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / SqlClient / SqlGen / SymbolTable.cs / 1305376 / SymbolTable.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Data.SqlClient; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees; namespace System.Data.SqlClient.SqlGen { ////// The symbol table is quite primitive - it is a stack with a new entry for /// each scope. Lookups search from the top of the stack to the bottom, until /// an entry is found. /// /// The symbols are of the following kinds /// internal sealed class SymbolTable { private List///
/// /// Symbols represent names- ///
represents tables (extents/nested selects/unnests) - ///
represents Join nodes - ///
columns. to be resolved, /// or things to be renamed. /// > symbols = new List >(); internal void EnterScope() { symbols.Add(new Dictionary (StringComparer.OrdinalIgnoreCase)); } internal void ExitScope() { symbols.RemoveAt(symbols.Count - 1); } internal void Add(string name, Symbol value) { symbols[symbols.Count - 1][name] = value; } internal Symbol Lookup(string name) { for (int i = symbols.Count - 1; i >= 0; --i) { if (symbols[i].ContainsKey(name)) { return symbols[i][name]; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SynchronizationContext.cs
- SafeNativeMethods.cs
- TableAdapterManagerNameHandler.cs
- returneventsaver.cs
- ProcessHostMapPath.cs
- TextureBrush.cs
- SchemaEntity.cs
- SqlCaseSimplifier.cs
- SoapSchemaMember.cs
- DbParameterHelper.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DynamicFilter.cs
- ManagementObject.cs
- FloatSumAggregationOperator.cs
- XmlValueConverter.cs
- StyleSelector.cs
- WpfPayload.cs
- SystemInformation.cs
- DesignerActionItem.cs
- NativeMethods.cs
- BasicAsyncResult.cs
- SpeechEvent.cs
- PathGeometry.cs
- CodeConditionStatement.cs
- TransformedBitmap.cs
- AttributeTableBuilder.cs
- FontSourceCollection.cs
- ProviderConnectionPoint.cs
- XmlILStorageConverter.cs
- InvalidMessageContractException.cs
- TreeViewDesigner.cs
- ToolStripDesignerAvailabilityAttribute.cs
- RouteValueDictionary.cs
- ManifestResourceInfo.cs
- BuilderPropertyEntry.cs
- RoutedPropertyChangedEventArgs.cs
- AssemblyBuilderData.cs
- SettingsProperty.cs
- UndirectedGraph.cs
- EventLogSession.cs
- ResourceDisplayNameAttribute.cs
- DataGridCommandEventArgs.cs
- NativeMethods.cs
- OdbcFactory.cs
- TextSelectionProcessor.cs
- ListControlConvertEventArgs.cs
- LockCookie.cs
- SystemSounds.cs
- TextSelectionHelper.cs
- exports.cs
- WorkflowDebuggerSteppingAttribute.cs
- IgnorePropertiesAttribute.cs
- Rijndael.cs
- SerialStream.cs
- WorkerRequest.cs
- SQLBytesStorage.cs
- TreeIterator.cs
- NoPersistHandle.cs
- StorageAssociationTypeMapping.cs
- ResourcePermissionBase.cs
- RecognitionResult.cs
- PropertyGrid.cs
- CommonDialog.cs
- SmiRequestExecutor.cs
- ParagraphVisual.cs
- Propagator.Evaluator.cs
- SqlWebEventProvider.cs
- BinaryFormatterWriter.cs
- SHA512Cng.cs
- TabControlEvent.cs
- Symbol.cs
- HtmlElement.cs
- CodeObjectCreateExpression.cs
- MachineKey.cs
- Menu.cs
- StringDictionaryWithComparer.cs
- CompiledXpathExpr.cs
- FixedStringLookup.cs
- IChannel.cs
- ManifestResourceInfo.cs
- sqlinternaltransaction.cs
- GetReadStreamResult.cs
- QueryInterceptorAttribute.cs
- XmlDocumentType.cs
- PrintControllerWithStatusDialog.cs
- VectorAnimation.cs
- ModifyActivitiesPropertyDescriptor.cs
- ContextMenuStrip.cs
- XmlHelper.cs
- TextServicesDisplayAttribute.cs
- MSHTMLHost.cs
- SortFieldComparer.cs
- MethodImplAttribute.cs
- XMLUtil.cs
- TextWriterTraceListener.cs
- StringAttributeCollection.cs
- ConnectionProviderAttribute.cs
- BinaryFormatterWriter.cs
- ClientTargetCollection.cs
- ListItemCollection.cs