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
- SafeRightsManagementQueryHandle.cs
- invalidudtexception.cs
- XsltInput.cs
- BrowsableAttribute.cs
- TileModeValidation.cs
- IisTraceWebEventProvider.cs
- SecurityUtils.cs
- FixedSOMTableCell.cs
- KeyInstance.cs
- GridItemCollection.cs
- AssemblyNameProxy.cs
- ProtectedConfiguration.cs
- FixedStringLookup.cs
- basenumberconverter.cs
- Selector.cs
- RawStylusInput.cs
- ListViewDeleteEventArgs.cs
- XPathDocument.cs
- AsyncOperation.cs
- CodeGeneratorOptions.cs
- CollectionView.cs
- WindowsEditBoxRange.cs
- DesignerContextDescriptor.cs
- ButtonField.cs
- KeyValueSerializer.cs
- PlainXmlWriter.cs
- PrinterUnitConvert.cs
- AuthenticationException.cs
- SkipStoryboardToFill.cs
- XmlArrayItemAttributes.cs
- configsystem.cs
- XmlDataSourceNodeDescriptor.cs
- LinqDataSourceStatusEventArgs.cs
- ComNativeDescriptor.cs
- PeerContact.cs
- Faults.cs
- TileBrush.cs
- HttpConfigurationSystem.cs
- Code.cs
- DesignerActionUIStateChangeEventArgs.cs
- UrlPath.cs
- BindingGroup.cs
- ComponentChangedEvent.cs
- MissingMemberException.cs
- EdmFunctions.cs
- XmlComplianceUtil.cs
- ECDiffieHellmanCngPublicKey.cs
- WebPartEditorOkVerb.cs
- LoginUtil.cs
- DataKey.cs
- BoolExpressionVisitors.cs
- Speller.cs
- DateTimeParse.cs
- SourceItem.cs
- OpCodes.cs
- PointAnimationUsingKeyFrames.cs
- Point3DConverter.cs
- TransformerInfoCollection.cs
- BlockingCollection.cs
- XamlParser.cs
- updatecommandorderer.cs
- BindingValueChangedEventArgs.cs
- ComponentResourceKey.cs
- ColumnHeader.cs
- ListViewUpdatedEventArgs.cs
- RemotingConfigParser.cs
- RemoteWebConfigurationHostServer.cs
- IncrementalReadDecoders.cs
- BrowserCapabilitiesCodeGenerator.cs
- TextSerializer.cs
- Matrix3DConverter.cs
- ComplexType.cs
- NamespaceImport.cs
- TextModifier.cs
- ElementMarkupObject.cs
- UInt64.cs
- DataGridViewCell.cs
- XmlArrayAttribute.cs
- SurrogateEncoder.cs
- EventEntry.cs
- XmlTextAttribute.cs
- XPathScanner.cs
- CleanUpVirtualizedItemEventArgs.cs
- RegexWorker.cs
- XD.cs
- DiscoveryMessageSequenceCD1.cs
- ToolStripDropDownClosingEventArgs.cs
- ReflectionHelper.cs
- TableDetailsCollection.cs
- COSERVERINFO.cs
- FragmentNavigationEventArgs.cs
- SelectionProviderWrapper.cs
- BuildManagerHost.cs
- RC2.cs
- ComponentCache.cs
- DefaultValueTypeConverter.cs
- DataGridViewSelectedRowCollection.cs
- SqlDeflator.cs
- ItemsControlAutomationPeer.cs
- EventProviderWriter.cs