public PropertyGenerator(Class @class, IDiagnosticConsumer log) { this.log = log; foreach (var method in @class.Methods.Where( m => !m.IsConstructor && !m.IsDestructor && !m.IsOperator && m.IsGenerated)) DistributeMethod(method); }
public PropertyGenerator(Class @class, IDiagnosticConsumer log) { this.log = log; foreach (var method in @class.Methods.Where( m => !m.IsConstructor && !m.IsDestructor && !m.IsOperator && m.IsGenerated)) { DistributeMethod(method); } }
public Driver(DriverOptions options, IDiagnosticConsumer diagnostics) { Options = options; Diagnostics = diagnostics; Project = new Project(); ASTContext = new ASTContext(); Symbols = new SymbolContext(); TypeDatabase = new TypeMapDatabase(); TranslationUnitPasses = new PassBuilder <TranslationUnitPass>(this); GeneratorOutputPasses = new PassBuilder <GeneratorOutputPass>(this); }
public static void EmitError(this IDiagnosticConsumer consumer, DiagnosticId id, string msg, params object[] args) { var diagInfo = new DiagnosticInfo { Kind = DiagnosticKind.Error, Message = string.Format(msg, args) }; consumer.Emit(diagInfo); }
public static void EmitError(this IDiagnosticConsumer consumer, string msg) { var diagInfo = new DiagnosticInfo { Kind = DiagnosticKind.Error, Message = msg }; consumer.Emit(diagInfo); }
public Driver(DriverOptions options, IDiagnosticConsumer diagnostics) { Options = options; Diagnostics = diagnostics; Parser = new Parser(Options); Parser.OnHeaderParsed += OnFileParsed; Parser.OnLibraryParsed += OnFileParsed; TypeDatabase = new TypeMapDatabase(); TranslationUnitPasses = new PassBuilder <TranslationUnitPass>(this); GeneratorOutputPasses = new PassBuilder <GeneratorOutputPass>(this); }
public Driver(DriverOptions options, IDiagnosticConsumer diagnostics) { Options = options; Diagnostics = diagnostics; Project = new Project(); ASTContext = new ASTContext(); Symbols = new SymbolContext(); Delegates = new Dictionary<Function, DelegatesPass.DelegateDefinition>(); TypeDatabase = new TypeMapDatabase(); TranslationUnitPasses = new PassBuilder<TranslationUnitPass>(this); GeneratorOutputPasses = new PassBuilder<GeneratorOutputPass>(this); }
public DeclarationName(IDiagnosticConsumer diagnostics) { this.diagnostics = diagnostics; methodSignatures = new Dictionary<string, int>(); }
public DiagnosticsEngine(IDiagnosticConsumer consumer) { Consumer = consumer; }
public DeclarationName(IDiagnosticConsumer diagnostics) { this.diagnostics = diagnostics; methodSignatures = new Dictionary <string, int>(); }
public static void Debug(this IDiagnosticConsumer consumer, string msg, params object[] args) { consumer.Debug(DiagnosticId.None, msg, args); }