crashanalysercmd/PerfToolsSharedLibraries/Engine/SymBuildParsingLib/Parser/PreProcessor/Workers/SymPreProcessorWorkerConditionalExpression.cs
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 using System; |
|
19 using SymBuildParsingLib.Tree; |
|
20 using SymBuildParsingLib.Parser.Framework; |
|
21 using SymBuildParsingLib.Parser.Framework.Nodes; |
|
22 using SymBuildParsingLib.Parser.Framework.Workers; |
|
23 using SymBuildParsingLib.Parser.PreProcessor.Nodes; |
|
24 using SymBuildParsingLib.Parser.PreProcessor.Parser; |
|
25 |
|
26 namespace SymBuildParsingLib.Parser.PreProcessor.Workers |
|
27 { |
|
28 public class SymPreProcessorWorkerConditionalExpression : SymParserWorkerConditionalExpression |
|
29 { |
|
30 #region Constructors & destructor |
|
31 public SymPreProcessorWorkerConditionalExpression( SymParserWorkerContext aContext ) |
|
32 : base( aContext ) |
|
33 { |
|
34 System.Diagnostics.Debug.Assert( aContext.Document.CurrentNode is SymNodeConditionalExpression ); |
|
35 |
|
36 // Inform the parser about the conditional expression node. It will use this |
|
37 // as a means of identifying whether to skip tokens until a positive branch is identified. |
|
38 SymPreProcessorParser parser = (SymPreProcessorParser) aContext.Parser; |
|
39 parser.ConditionalExpressionPush( aContext.Document.CurrentNode as SymNodeConditionalExpression ); |
|
40 } |
|
41 #endregion |
|
42 } |
|
43 } |