public O2CodeStream(O2MappedAstData o2MappedAstData , O2CodeStreamTaintRules taintRules , string sourceFile ) { O2MappedAstData = o2MappedAstData; TaintRules = taintRules; O2CodeStreamNodes = new Dictionary<INode,O2CodeStreamNode>(); StreamNode_First = new List<O2CodeStreamNode>(); INodeStack = new Stack<INode>(); SourceFile = sourceFile; }
public O2CodeStream(O2MappedAstData o2MappedAstData, O2CodeStreamTaintRules taintRules, string sourceFile) { O2MappedAstData = o2MappedAstData; TaintRules = taintRules; O2CodeStreamNodes = new Dictionary <INode, O2CodeStreamNode>(); StreamNode_First = new List <O2CodeStreamNode>(); INodeStack = new Stack <INode>(); SourceFile = sourceFile; }
public O2MethodStream(O2MappedAstData o2MappedAstData) { O2MappedAstData = o2MappedAstData; MappedIMethods = new Dictionary <string, IMethod>(); ExternalIMethods = new Dictionary <string, IMethod>(); ExternalClasses = new Dictionary <string, IReturnType>(); Fields = new Dictionary <string, IField>(); Properties = new Dictionary <string, IProperty>(); NamespaceReferences = new List <String>(); }
public O2MethodStream(O2MappedAstData o2MappedAstData) { O2MappedAstData = o2MappedAstData; MappedIMethods = new Dictionary<string,IMethod>(); ExternalIMethods = new Dictionary<string,IMethod>(); ExternalClasses = new Dictionary<string, IReturnType>(); Fields = new Dictionary<string,IField>(); Properties = new Dictionary<string, IProperty>(); NamespaceReferences = new List<String>(); }
public Assembly compileCSSharpFile() { Assembly compiledAssembly = null; var compileEngine = new CompileEngine(); if (getSourceCode() != "") { saveSourceCode(); // always save before compiling compileEngine.compileSourceFile(sPathToFileLoaded); compiledAssembly = compileEngine.compiledAssembly ?? null; if (compiledAssembly.notNull() && o2CodeCompletion.notNull() && compileEngine.cpCompilerParameters.notNull()) o2CodeCompletion.addReferences(compileEngine.cpCompilerParameters.ReferencedAssemblies.toList()); } var state = compiledAssembly == null && compileEngine.sbErrorMessage != null; //btShowHideCompilationErrors.visible(state); btShowHideCompilationErrors.prop("Visible",state); tvCompilationErrors.visible(state); lbCompilationErrors.prop("Visible", state); clearBookmarksAndMarkers(); // if there isn't a compiledAssembly, show errors if (compiledAssembly == null) { compileEngine.addErrorsListToTreeView(tvCompilationErrors); showErrorsInSourceCodeEditor(compileEngine.sbErrorMessage.str()); } else { if (compiledFileAstData.notNull()) compiledFileAstData.Dispose(); compiledFileAstData = new O2MappedAstData(sPathToFileLoaded); } return compiledAssembly; }