crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/SourceParser/SourceParser.cs
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using SymbianUtils.SourceParser.Objects; |
|
21 using SymbianUtils.SourceParser.Parsers; |
|
22 |
|
23 namespace SymbianUtils.SourceParser |
|
24 { |
|
25 public class SourceParser |
|
26 { |
|
27 #region Constructors |
|
28 public SourceParser() |
|
29 { |
|
30 } |
|
31 #endregion |
|
32 |
|
33 #region API |
|
34 public SrcMethod Parse( string aText ) |
|
35 { |
|
36 ParserSrcMethod methodParser = new ParserSrcMethod(); |
|
37 SrcMethod method = methodParser.Parse( ref aText ); |
|
38 |
|
39 // And then parse what's left as the class |
|
40 if ( method != null ) |
|
41 { |
|
42 ParserSrcClass classParser = new ParserSrcClass(); |
|
43 SrcClass classObject = classParser.Parse( ref aText ); |
|
44 // |
|
45 classObject.AddMethod( method ); |
|
46 } |
|
47 |
|
48 return method; |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region Properties |
|
53 #endregion |
|
54 |
|
55 #region Data members |
|
56 #endregion |
|
57 } |
|
58 } |