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
- regiisutil.cs
- TableParaClient.cs
- pingexception.cs
- ServiceModelEnumValidator.cs
- TriggerBase.cs
- ComponentSerializationService.cs
- NetWebProxyFinder.cs
- FileSecurity.cs
- New.cs
- TraceContext.cs
- LinqDataSource.cs
- Int64AnimationBase.cs
- AutomationPropertyInfo.cs
- Cursor.cs
- TypeExtension.cs
- WebPartVerbsEventArgs.cs
- GreaterThanOrEqual.cs
- ToolStripLabel.cs
- HeaderedItemsControl.cs
- ResumeStoryboard.cs
- SoapExtensionTypeElement.cs
- BindToObject.cs
- HwndAppCommandInputProvider.cs
- PrivilegedConfigurationManager.cs
- TreeViewAutomationPeer.cs
- TableItemPatternIdentifiers.cs
- BinHexDecoder.cs
- DecimalConverter.cs
- PrtTicket_Base.cs
- Vector3DAnimation.cs
- PluralizationServiceUtil.cs
- input.cs
- DotExpr.cs
- RegexMatchCollection.cs
- BindingCompleteEventArgs.cs
- EventHandlerList.cs
- ContextMenuAutomationPeer.cs
- Vector3DAnimationBase.cs
- controlskin.cs
- SiteMapPath.cs
- SystemEvents.cs
- TokenBasedSetEnumerator.cs
- ModuleConfigurationInfo.cs
- DescriptionAttribute.cs
- EdmTypeAttribute.cs
- InputEventArgs.cs
- CodeExpressionStatement.cs
- RepeatButtonAutomationPeer.cs
- DataControlExtensions.cs
- IconConverter.cs
- Single.cs
- HttpProtocolImporter.cs
- AttachedPropertiesService.cs
- CorrelationManager.cs
- TextLine.cs
- TcpClientSocketManager.cs
- InternalPermissions.cs
- Axis.cs
- CommentEmitter.cs
- ExtensionWindowResizeGrip.cs
- MatchingStyle.cs
- VectorConverter.cs
- ReflectionTypeLoadException.cs
- QilTernary.cs
- TextServicesManager.cs
- SqlRowUpdatedEvent.cs
- SupportingTokenProviderSpecification.cs
- Errors.cs
- Frame.cs
- BufferBuilder.cs
- RoleManagerSection.cs
- LogEntryHeaderDeserializer.cs
- ContentElement.cs
- HttpProfileBase.cs
- TreeNodeStyleCollectionEditor.cs
- ProcessHost.cs
- XsdBuilder.cs
- EditingScopeUndoUnit.cs
- DataGridViewLayoutData.cs
- UIPermission.cs
- DataServiceExpressionVisitor.cs
- XPathDocumentNavigator.cs
- HtmlInputSubmit.cs
- ValidationHelper.cs
- LocalizabilityAttribute.cs
- DeferredReference.cs
- TraceLevelStore.cs
- CounterSample.cs
- basemetadatamappingvisitor.cs
- XmlSchemaComplexContentExtension.cs
- WebPartDisplayModeCancelEventArgs.cs
- OutputCacheProfile.cs
- sortedlist.cs
- RegexCompilationInfo.cs
- ListInitExpression.cs
- DecoderBestFitFallback.cs
- WmlCalendarAdapter.cs
- Int32Converter.cs
- DbConnectionStringBuilder.cs
- VsPropertyGrid.cs