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
- DaylightTime.cs
- FormViewInsertedEventArgs.cs
- DictionarySectionHandler.cs
- WebPartPersonalization.cs
- ProxyHwnd.cs
- IPipelineRuntime.cs
- CacheDependency.cs
- DecodeHelper.cs
- SplitterCancelEvent.cs
- ToolboxItemSnapLineBehavior.cs
- Viewport3DVisual.cs
- DbMetaDataCollectionNames.cs
- AccessedThroughPropertyAttribute.cs
- FirstMatchCodeGroup.cs
- ContentPresenter.cs
- InputLanguageSource.cs
- XmlSchemaInferenceException.cs
- RegexWorker.cs
- FormatException.cs
- _Semaphore.cs
- ClaimSet.cs
- OpCopier.cs
- GenericWebPart.cs
- ReversePositionQuery.cs
- UnsafeNativeMethods.cs
- PassportAuthentication.cs
- BrowserDefinition.cs
- GridEntryCollection.cs
- smtpconnection.cs
- BaseCodePageEncoding.cs
- METAHEADER.cs
- RotateTransform.cs
- ByteFacetDescriptionElement.cs
- TextMarkerSource.cs
- GradientSpreadMethodValidation.cs
- input.cs
- Material.cs
- ContentType.cs
- MetadataUtilsSmi.cs
- SoapReflectionImporter.cs
- ImageKeyConverter.cs
- AmbientProperties.cs
- BrushMappingModeValidation.cs
- HeaderedContentControl.cs
- CTreeGenerator.cs
- ControlBuilderAttribute.cs
- DispatcherOperation.cs
- TaskDesigner.cs
- WebScriptServiceHostFactory.cs
- OleDbStruct.cs
- SqlReorderer.cs
- NavigationCommands.cs
- InvokeBinder.cs
- unitconverter.cs
- GeneralTransform3DTo2DTo3D.cs
- TimerEventSubscription.cs
- WizardStepBase.cs
- TextTrailingCharacterEllipsis.cs
- SoapAttributeAttribute.cs
- PrimitiveCodeDomSerializer.cs
- MenuItem.cs
- XmlValueConverter.cs
- InfoCardSymmetricCrypto.cs
- TagPrefixInfo.cs
- WSDualHttpBindingElement.cs
- RelationshipEnd.cs
- LinqDataView.cs
- BufferedOutputStream.cs
- DynamicFilterExpression.cs
- webeventbuffer.cs
- AssemblyBuilder.cs
- WindowsGraphics2.cs
- Utility.cs
- XamlStyleSerializer.cs
- ColorPalette.cs
- IndentTextWriter.cs
- ClickablePoint.cs
- ObjectViewListener.cs
- DateTimePicker.cs
- SchemaDeclBase.cs
- ListBox.cs
- EDesignUtil.cs
- NumericUpDownAcceleration.cs
- RefExpr.cs
- XmlSchemaDocumentation.cs
- HtmlInputControl.cs
- SqlTriggerAttribute.cs
- WebRequestModuleElementCollection.cs
- NumericUpDownAcceleration.cs
- ExpressionLink.cs
- ReliabilityContractAttribute.cs
- SerialPort.cs
- HighlightOverlayGlyph.cs
- InputMethod.cs
- PropertyConverter.cs
- MarkupCompilePass2.cs
- SystemIcmpV4Statistics.cs
- AddInAdapter.cs
- FormattedTextSymbols.cs
- Missing.cs