Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AstNode.cs / 1 / AstNode.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the astnode error context. /// internal class ErrorContext { ////// represents the start position of the ast node element in the input stream /// internal int InputPosition = -1; ////// represents the additional/contextual information related to the ast node /// internal string ErrorContextInfo; ////// defines how ErrorContextInfo should be interpreted /// internal bool UseContextInfoAsResourceIdentifier = true; ////// represents a referece to the original input query text /// internal string QueryText; } ////// Represents base class for nodes in the Abstract Syntax Tree /// internal abstract class AstNode { private ErrorContext _errCtx = new ErrorContext(); internal AstNode() { } internal AstNode( string query, int inputPosition ) { _errCtx.QueryText = query; _errCtx.InputPosition = inputPosition; } ////// Returns the AstNode error context. /// internal ErrorContext ErrCtx { get { return _errCtx; } set { _errCtx = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the astnode error context. /// internal class ErrorContext { ////// represents the start position of the ast node element in the input stream /// internal int InputPosition = -1; ////// represents the additional/contextual information related to the ast node /// internal string ErrorContextInfo; ////// defines how ErrorContextInfo should be interpreted /// internal bool UseContextInfoAsResourceIdentifier = true; ////// represents a referece to the original input query text /// internal string QueryText; } ////// Represents base class for nodes in the Abstract Syntax Tree /// internal abstract class AstNode { private ErrorContext _errCtx = new ErrorContext(); internal AstNode() { } internal AstNode( string query, int inputPosition ) { _errCtx.QueryText = query; _errCtx.InputPosition = inputPosition; } ////// Returns the AstNode error context. /// internal ErrorContext ErrCtx { get { return _errCtx; } set { _errCtx = value; } } } } // 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
- XmlWellformedWriter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- PointCollection.cs
- ChunkedMemoryStream.cs
- HttpCacheVaryByContentEncodings.cs
- KnownBoxes.cs
- UpdateException.cs
- Model3D.cs
- TrackingStringDictionary.cs
- XpsResourcePolicy.cs
- GC.cs
- PeerDuplexChannelListener.cs
- EventSourceCreationData.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- LoginView.cs
- SerialStream.cs
- httpapplicationstate.cs
- MissingFieldException.cs
- TextTabProperties.cs
- ProxyHelper.cs
- RTLAwareMessageBox.cs
- LinqDataSourceUpdateEventArgs.cs
- MaskDescriptors.cs
- VisualTreeHelper.cs
- ListChangedEventArgs.cs
- FormattedText.cs
- ChtmlCalendarAdapter.cs
- ListViewItemEventArgs.cs
- TextServicesProperty.cs
- ModuleBuilderData.cs
- Exception.cs
- GetIndexBinder.cs
- DictionaryEntry.cs
- _TransmitFileOverlappedAsyncResult.cs
- OneOfElement.cs
- WorkflowTraceTransfer.cs
- COM2TypeInfoProcessor.cs
- GCHandleCookieTable.cs
- QuaternionAnimation.cs
- EditCommandColumn.cs
- IsolatedStorageException.cs
- GeneralTransform3D.cs
- InvalidChannelBindingException.cs
- shaperfactoryquerycachekey.cs
- sqlstateclientmanager.cs
- ClientSettingsStore.cs
- SafeFileMapViewHandle.cs
- InputEventArgs.cs
- HyperLinkStyle.cs
- MarshalByValueComponent.cs
- OdbcFactory.cs
- TemplateAction.cs
- ActivityDesignerHighlighter.cs
- Privilege.cs
- InheritanceAttribute.cs
- BuildProvidersCompiler.cs
- TraceSection.cs
- ViewStateModeByIdAttribute.cs
- ObservableDictionary.cs
- SingleStorage.cs
- ObjectTypeMapping.cs
- webbrowsersite.cs
- SelectionListComponentEditor.cs
- XmlSchemaComplexContent.cs
- DataObjectSettingDataEventArgs.cs
- IndexingContentUnit.cs
- SrgsElementFactoryCompiler.cs
- UInt32.cs
- GridViewDeletedEventArgs.cs
- JsonServiceDocumentSerializer.cs
- WebPartExportVerb.cs
- UserPreferenceChangingEventArgs.cs
- SqlGatherProducedAliases.cs
- DataPagerField.cs
- DataColumnMapping.cs
- ParseNumbers.cs
- Instrumentation.cs
- TextDecorations.cs
- ScrollEventArgs.cs
- ValueOfAction.cs
- OracleCommandSet.cs
- HtmlInputPassword.cs
- GridItemProviderWrapper.cs
- BitSet.cs
- NetCodeGroup.cs
- FileClassifier.cs
- UserPersonalizationStateInfo.cs
- DetailsViewRowCollection.cs
- CacheMemory.cs
- Popup.cs
- DataServiceProcessingPipeline.cs
- HttpProfileGroupBase.cs
- WaitHandle.cs
- ClientRoleProvider.cs
- storagemappingitemcollection.viewdictionary.cs
- HttpApplicationStateWrapper.cs
- Label.cs
- WizardSideBarListControlItem.cs
- TransformCryptoHandle.cs