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
- ScriptManager.cs
- UrlAuthorizationModule.cs
- ScriptResourceInfo.cs
- MobileCapabilities.cs
- DataGridRelationshipRow.cs
- Localizer.cs
- HtmlTableRowCollection.cs
- ThrowHelper.cs
- CertificateElement.cs
- MouseDevice.cs
- BlurEffect.cs
- HiddenField.cs
- KerberosSecurityTokenProvider.cs
- Condition.cs
- AssemblyAttributesGoHere.cs
- ConfigurationErrorsException.cs
- TableFieldsEditor.cs
- Utils.cs
- CodeDelegateCreateExpression.cs
- AtomEntry.cs
- EventQueueState.cs
- SafeRightsManagementSessionHandle.cs
- HandleValueEditor.cs
- SigningCredentials.cs
- WindowsRegion.cs
- PackagePart.cs
- XmlValidatingReader.cs
- XmlSchemaObjectCollection.cs
- FamilyTypeface.cs
- RequestQueryProcessor.cs
- EditingMode.cs
- XmlSchemaDocumentation.cs
- XmlExtensionFunction.cs
- RoleServiceManager.cs
- UInt32.cs
- ActivityExecutorSurrogate.cs
- BehaviorEditorPart.cs
- XmlSchemaComplexContentExtension.cs
- CompareInfo.cs
- DataChangedEventManager.cs
- FontStyleConverter.cs
- HttpPostedFileBase.cs
- CustomSignedXml.cs
- BaseUriHelper.cs
- EventArgs.cs
- ObjectListDesigner.cs
- XmlImplementation.cs
- TypographyProperties.cs
- ObjectContext.cs
- PnrpPermission.cs
- ArgIterator.cs
- ChangeTracker.cs
- SystemNetHelpers.cs
- arclist.cs
- UdpChannelFactory.cs
- XmlEncodedRawTextWriter.cs
- FrameDimension.cs
- MetadataCache.cs
- PhotoPrintingIntent.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RoutedEventValueSerializer.cs
- SqlAggregateChecker.cs
- sqlinternaltransaction.cs
- TextViewBase.cs
- _UriSyntax.cs
- ViewValidator.cs
- RegexMatchCollection.cs
- safePerfProviderHandle.cs
- List.cs
- BuildManagerHost.cs
- HttpServerUtilityWrapper.cs
- ObjectRef.cs
- C14NUtil.cs
- CodeTryCatchFinallyStatement.cs
- ScrollChrome.cs
- FormatConvertedBitmap.cs
- SubqueryRules.cs
- BamlLocalizableResourceKey.cs
- ReturnEventArgs.cs
- EngineSiteSapi.cs
- AppDomainAttributes.cs
- MemberInfoSerializationHolder.cs
- Events.cs
- Positioning.cs
- GatewayIPAddressInformationCollection.cs
- TdsEnums.cs
- ResXResourceReader.cs
- PanelDesigner.cs
- Accessible.cs
- BindingMemberInfo.cs
- PageHandlerFactory.cs
- IPHostEntry.cs
- ToolStripTextBox.cs
- CancellationScope.cs
- HttpResponse.cs
- CreateSequence.cs
- XsltSettings.cs
- CodeIdentifier.cs
- Pointer.cs
- ValidatedControlConverter.cs