Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- InternalRelationshipCollection.cs
- ContextStaticAttribute.cs
- WebPartVerbCollection.cs
- FormsAuthenticationTicket.cs
- StoreContentChangedEventArgs.cs
- ConstraintEnumerator.cs
- AmbientLight.cs
- DisposableCollectionWrapper.cs
- GenericEnumerator.cs
- DBDataPermission.cs
- ObfuscationAttribute.cs
- TextEditorSpelling.cs
- CodeObject.cs
- FolderBrowserDialogDesigner.cs
- DataRecordObjectView.cs
- DataException.cs
- OdbcEnvironmentHandle.cs
- TransformerConfigurationWizardBase.cs
- CodeIndexerExpression.cs
- PerformanceCounterCategory.cs
- ListViewDeletedEventArgs.cs
- MetabaseServerConfig.cs
- ProxyGenerationError.cs
- InheritedPropertyChangedEventArgs.cs
- TextProviderWrapper.cs
- VBIdentifierName.cs
- RectangleF.cs
- ErrorFormatter.cs
- TreeView.cs
- ObjectConverter.cs
- ConnectionsZone.cs
- CollectionViewProxy.cs
- GeometryDrawing.cs
- SharedUtils.cs
- DownloadProgressEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- StrokeFIndices.cs
- GenericUriParser.cs
- PartDesigner.cs
- ValidationSummary.cs
- EventDescriptor.cs
- XPathEmptyIterator.cs
- SystemGatewayIPAddressInformation.cs
- EntityObject.cs
- BindingUtils.cs
- SqlGenerator.cs
- UIPropertyMetadata.cs
- WebPartEditorOkVerb.cs
- DbConvert.cs
- PatternMatcher.cs
- WebScriptEnablingElement.cs
- UidManager.cs
- EntitySqlQueryCacheKey.cs
- RuntimeVariableList.cs
- HttpStaticObjectsCollectionWrapper.cs
- errorpatternmatcher.cs
- GenericTypeParameterBuilder.cs
- TableCellCollection.cs
- URL.cs
- EdmFunction.cs
- Baml2006KnownTypes.cs
- ContentPathSegment.cs
- DataSourceControl.cs
- InstanceOwnerException.cs
- MappedMetaModel.cs
- FaultFormatter.cs
- ScriptResourceAttribute.cs
- PageClientProxyGenerator.cs
- ExpressionNormalizer.cs
- WebControlParameterProxy.cs
- EncoderParameters.cs
- Vector3DValueSerializer.cs
- StringValidatorAttribute.cs
- Authorization.cs
- GeneralTransform2DTo3DTo2D.cs
- PersonalizationStateInfo.cs
- _NegoState.cs
- XmlSerializer.cs
- TextServicesCompartmentEventSink.cs
- RecipientInfo.cs
- PageResolution.cs
- SafeTimerHandle.cs
- MarshalByRefObject.cs
- SupportingTokenSpecification.cs
- ProxyHelper.cs
- HtmlTernaryTree.cs
- InstanceOwner.cs
- VBCodeProvider.cs
- ResourceContainer.cs
- DecimalAnimation.cs
- ParserExtension.cs
- ToolTipAutomationPeer.cs
- PoisonMessageException.cs
- GridViewActionList.cs
- ValueQuery.cs
- Form.cs
- EntityDataSourceWrapper.cs
- DynamicResourceExtensionConverter.cs
- ListItemParagraph.cs
- SubclassTypeValidator.cs