Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DataServiceHostFactory.cs
- XmlSiteMapProvider.cs
- StreamInfo.cs
- SendSecurityHeader.cs
- SafeMemoryMappedViewHandle.cs
- HtmlShim.cs
- VirtualDirectoryMappingCollection.cs
- FontEditor.cs
- WeakEventManager.cs
- StorageEndPropertyMapping.cs
- Rules.cs
- DataControlPagerLinkButton.cs
- _BasicClient.cs
- DataGridViewRowsAddedEventArgs.cs
- StoryFragments.cs
- LayoutSettings.cs
- ipaddressinformationcollection.cs
- GridErrorDlg.cs
- ClassImporter.cs
- Timer.cs
- _TransmitFileOverlappedAsyncResult.cs
- FamilyTypefaceCollection.cs
- XPathBinder.cs
- RijndaelManaged.cs
- Int16AnimationBase.cs
- XmlNodeReader.cs
- GenericEnumConverter.cs
- Bitmap.cs
- PropertyChangingEventArgs.cs
- CompiledRegexRunner.cs
- AlgoModule.cs
- XmlAttributeAttribute.cs
- SByteConverter.cs
- LogManagementAsyncResult.cs
- TdsParserSessionPool.cs
- QuotedPairReader.cs
- TextContainerChangedEventArgs.cs
- MenuBindingsEditor.cs
- PerfCounters.cs
- ObjectDataProvider.cs
- DataFormats.cs
- CapiHashAlgorithm.cs
- XmlAttributeCache.cs
- DefaultPrintController.cs
- IisTraceListener.cs
- BamlLocalizationDictionary.cs
- EditingCommands.cs
- MenuCommand.cs
- OleDbParameter.cs
- ReliableChannelBinder.cs
- SqlCaseSimplifier.cs
- util.cs
- EdmTypeAttribute.cs
- GeneralTransform.cs
- AtlasWeb.Designer.cs
- CanonicalizationDriver.cs
- WizardDesigner.cs
- ReflectionUtil.cs
- SafeSystemMetrics.cs
- CodeRegionDirective.cs
- DoubleConverter.cs
- Subset.cs
- CoTaskMemHandle.cs
- WorkflowWebService.cs
- ContextQuery.cs
- Util.cs
- SequenceNumber.cs
- CodeDomConfigurationHandler.cs
- ToolboxItemLoader.cs
- DocumentXPathNavigator.cs
- FolderBrowserDialog.cs
- EncodingNLS.cs
- infer.cs
- UserControl.cs
- SamlAuthorizationDecisionStatement.cs
- EventMappingSettings.cs
- PlaceHolder.cs
- Convert.cs
- TextInfo.cs
- EdmFunction.cs
- ManifestResourceInfo.cs
- ImmComposition.cs
- Comparer.cs
- DirectoryInfo.cs
- CollectionViewSource.cs
- OleDbRowUpdatedEvent.cs
- KeyPressEvent.cs
- StringHandle.cs
- HtmlTableRowCollection.cs
- MethodInfo.cs
- PermissionToken.cs
- ControlBuilder.cs
- BrowserTree.cs
- WindowsScrollBar.cs
- RegexGroupCollection.cs
- X509SecurityTokenAuthenticator.cs
- SByteConverter.cs
- UnmanagedBitmapWrapper.cs
- DelegateHelpers.Generated.cs
- Parameter.cs