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
- StorageBasedPackageProperties.cs
- DelegatingTypeDescriptionProvider.cs
- TreeNodeSelectionProcessor.cs
- Int32EqualityComparer.cs
- SRGSCompiler.cs
- MessageHeader.cs
- ContractCodeDomInfo.cs
- Interlocked.cs
- InputBuffer.cs
- DataSourceView.cs
- DataMisalignedException.cs
- RoutedEvent.cs
- IteratorAsyncResult.cs
- DecoderExceptionFallback.cs
- HttpApplication.cs
- CellCreator.cs
- CodeDelegateInvokeExpression.cs
- FactoryId.cs
- VerifyHashRequest.cs
- CompilerCollection.cs
- TableSectionStyle.cs
- TableItemPattern.cs
- DataObjectCopyingEventArgs.cs
- BaseTemplateBuildProvider.cs
- DetailsViewUpdatedEventArgs.cs
- ConversionContext.cs
- ApplyTemplatesAction.cs
- CfgSemanticTag.cs
- SignatureDescription.cs
- StrokeDescriptor.cs
- Query.cs
- Token.cs
- CompiledScopeCriteria.cs
- SortFieldComparer.cs
- PersonalizationStateInfoCollection.cs
- ExecutionEngineException.cs
- GACMembershipCondition.cs
- MdiWindowListStrip.cs
- ContentType.cs
- WebPartZoneDesigner.cs
- SqlBuilder.cs
- DynamicAttribute.cs
- PeerUnsafeNativeMethods.cs
- LogWriteRestartAreaState.cs
- ISO2022Encoding.cs
- TypeReference.cs
- ParseHttpDate.cs
- GPPOINT.cs
- ImageAttributes.cs
- BaseTemplatedMobileComponentEditor.cs
- KeyedPriorityQueue.cs
- TemplateControlParser.cs
- SQLUtility.cs
- DrawingImage.cs
- JumpPath.cs
- DisplayNameAttribute.cs
- X509Certificate2.cs
- PackagingUtilities.cs
- ColumnWidthChangedEvent.cs
- VectorCollectionValueSerializer.cs
- UIPermission.cs
- TransformPattern.cs
- LinkedList.cs
- DefaultBindingPropertyAttribute.cs
- ToolStripItemRenderEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- CodeCastExpression.cs
- Button.cs
- RightsManagementEncryptedStream.cs
- WorkflowApplicationException.cs
- BoolLiteral.cs
- UnsafeNativeMethodsPenimc.cs
- XmlAtomErrorReader.cs
- SamlEvidence.cs
- TreeNode.cs
- IssuanceLicense.cs
- HealthMonitoringSection.cs
- COM2PictureConverter.cs
- CalendarDataBindingHandler.cs
- CultureData.cs
- DataGridViewCellStateChangedEventArgs.cs
- RtfFormatStack.cs
- CapabilitiesRule.cs
- UnsafeNativeMethods.cs
- SuspendDesigner.cs
- ExtendedTransformFactory.cs
- ToolStripItemImageRenderEventArgs.cs
- ListControlConvertEventArgs.cs
- PackageProperties.cs
- QueryCursorEventArgs.cs
- RandomNumberGenerator.cs
- AuthenticationModulesSection.cs
- _SslSessionsCache.cs
- FontFamily.cs
- TextElement.cs
- RefreshPropertiesAttribute.cs
- documentsequencetextcontainer.cs
- TCEAdapterGenerator.cs
- AddInEnvironment.cs
- QueryContinueDragEventArgs.cs