1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using System.Diagnostics;
9
using ICSharpCode.NRefactory.VB.Ast;
10
using ICSharpCode.NRefactory.VB.Parser;
12
namespace ICSharpCode.NRefactory.VB
14
public enum SnippetType
28
public CompilationUnit Parse(string content)
30
return Parse(new StringReader(content));
33
public CompilationUnit Parse(TextReader reader)
35
var parser = new ICSharpCode.NRefactory.VB.Parser.VBParser(new VBLexer(reader));
37
hasErrors = parser.Errors.Count > 0;
38
errors = parser.Errors;
39
return parser.CompilationUnit;
42
public AstNode ParseSnippet(TextReader reader)
44
throw new NotImplementedException();
47
public bool HasErrors {
48
get { return hasErrors; }
51
public Errors Errors {
52
get { return errors; }
b'\\ No newline at end of file'