diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessExtensions.cs b/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessExtensions.cs
index 96985ab..feaef01 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessExtensions.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessExtensions.cs
@@ -34,7 +34,7 @@ private static extern int NtQueryInformationProcess(IntPtr processHandle,
/// Gets the parent of this given process if it exits and you have access
///
/// The process to get the parent of
- /// The parent process or null if you don't have access or it does not exist
+ /// The parent process or null if you don't have access, or it does not exist
public static Process? GetParent(this Process? process)
{
if (process == null) return null;
diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessInformation.cs b/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessInformation.cs
index bcdc282..112db2f 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessInformation.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/Diagnostics/ProcessInformation.cs
@@ -11,7 +11,7 @@ namespace SGF.Diagnostics
internal struct ProcessInformation
{
///
- /// Contains the same value that GetExitCodeProcess returns. However the use of GetExitCodeProcess is preferable for clarity and safety.
+ /// Contains the same value that GetExitCodeProcess returns, however the use of GetExitCodeProcess is preferable for clarity and safety.
///
public IntPtr ExitStatus;
diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/MessageFilter.cs b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/MessageFilter.cs
index 99f8936..c963805 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/MessageFilter.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/MessageFilter.cs
@@ -27,7 +27,7 @@ public static void Register()
=> CoRegisterMessageFilter(new MessageFilter());
///
- /// Removes this assembly an a com message interceptor.
+ /// Removes this assembly's com message interceptor.
///
public static void Revoke()
=> CoRegisterMessageFilter(null);
diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioInterop.cs b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioInterop.cs
index 1f79cc3..86e1605 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioInterop.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioInterop.cs
@@ -41,7 +41,7 @@ static VisualStudioInterop()
// Already have this process
break;
case "MSBuild":
- // If it's msbuild we want to stup up
+ // If it's msbuild we want to set up
parentDebugProcess = parentDebugProcess.GetParent();
if (parentDebugProcess != null)
{
diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioLogEventSink.cs b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioLogEventSink.cs
index 8dbc040..5327a55 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioLogEventSink.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/Interop/VisualStudio/VisualStudioLogEventSink.cs
@@ -35,7 +35,7 @@ internal VisualStudioLogEventSink()
try
{
- // TODO: Try to load DTE a at a later point
+ // TODO: Try to load DTE at a later point
m_dte = VisualStudioInterop.GetDTE();
if (m_dte != null)
{
@@ -61,7 +61,7 @@ internal VisualStudioLogEventSink()
m_sourceGeneratorOutput ??= m_outputWindow.OutputWindowPanes.Add(outputPanelName);
- // When adding a pane will will steal focus, we don't want this. So lets force it back to build
+ // When adding a pane will steal focus, we don't want this. So lets force it back to build
foreach (OutputWindowPane pane in m_outputWindow.OutputWindowPanes)
{
if(string.Equals(BUILD_OUTPUT_PANE_GUID, pane.Guid))
@@ -119,7 +119,7 @@ public void Write(string message, OutputWindowPane? outputPain)
}
catch(Exception exception)
{
- Console.WriteLine($"Exception was thrown while writing log. Please report this on gihub {exception}");
+ Console.WriteLine($"Exception was thrown while writing log. Please report this on github {exception}");
}
}
}
diff --git a/src/Plugins/SourceGenerator.Foundations.Windows/WindowsDevelopmentPlatform.cs b/src/Plugins/SourceGenerator.Foundations.Windows/WindowsDevelopmentPlatform.cs
index 0256cf5..30a0706 100644
--- a/src/Plugins/SourceGenerator.Foundations.Windows/WindowsDevelopmentPlatform.cs
+++ b/src/Plugins/SourceGenerator.Foundations.Windows/WindowsDevelopmentPlatform.cs
@@ -7,7 +7,7 @@ namespace SGF
{
///
- /// Represents a enviroment where the user is authoring code in Visual Studio
+ /// Represents an environment where the user is authoring code in Visual Studio
///
internal class WindowsDevelopmentPlatform : IGeneratorEnvironment
{
diff --git a/src/Sandbox/ConsoleApp.SourceGenerator.Tests/TestCase.cs b/src/Sandbox/ConsoleApp.SourceGenerator.Tests/TestCase.cs
index 5da446e..62db4b0 100644
--- a/src/Sandbox/ConsoleApp.SourceGenerator.Tests/TestCase.cs
+++ b/src/Sandbox/ConsoleApp.SourceGenerator.Tests/TestCase.cs
@@ -30,7 +30,7 @@ private void Compose(string source)
ConsoleAppSourceGeneratorHoist host = new ConsoleAppSourceGeneratorHoist(generator);
// Parse the source into syntax trees
SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(source);
- // Setup the compilation settings
+ // Set up the compilation settings
CSharpCompilation compilation = CSharpCompilation.Create(
assemblyName: "UniTests",
syntaxTrees: new[] { syntaxTree });
diff --git a/src/Sandbox/ConsoleApp.SourceGenerator/ConsoleAppSourceGenerator.cs b/src/Sandbox/ConsoleApp.SourceGenerator/ConsoleAppSourceGenerator.cs
index 62da2f9..bd16b86 100644
--- a/src/Sandbox/ConsoleApp.SourceGenerator/ConsoleAppSourceGenerator.cs
+++ b/src/Sandbox/ConsoleApp.SourceGenerator/ConsoleAppSourceGenerator.cs
@@ -20,7 +20,7 @@ public class Payload
public ConsoleAppSourceGenerator() : base("ConsoleAppSourceGenerator")
{
- WarningMessage = "Warnigs show up in the 'Build' pane along with the 'Source Generators' pane";
+ WarningMessage = "Warnings show up in the 'Build' pane along with the 'Source Generators' pane";
}
public override void OnInitialize(SgfInitializationContext context)
@@ -32,7 +32,7 @@ public override void OnInitialize(SgfInitializationContext context)
};
Logger.Warning(WarningMessage);
- Logger.Information("This is the output from the sournce generator assembly ConsoleApp.SourceGenerator");
+ Logger.Information("This is the output from the source generator assembly ConsoleApp.SourceGenerator");
Logger.Information("This generator references Newtonsoft.Json and it can just be referenced without any other boilerplate");
Logger.Information(JsonConvert.SerializeObject(payload));
Logger.Information("Having the log makes working with generators much simpler!");
diff --git a/src/SourceGenerator.Foundations.Contracts/Diagnostics/ILogger.cs b/src/SourceGenerator.Foundations.Contracts/Diagnostics/ILogger.cs
index 53398c1..a025fdf 100644
--- a/src/SourceGenerator.Foundations.Contracts/Diagnostics/ILogger.cs
+++ b/src/SourceGenerator.Foundations.Contracts/Diagnostics/ILogger.cs
@@ -20,7 +20,7 @@ public interface ILogger
void AddSink(ILogSink sink);
///
- /// Logs an event the the logger
+ /// Logs an event to the logger
///
/// The level to log
/// An optional exception that this log refers too
diff --git a/src/SourceGenerator.Foundations.Contracts/Diagnostics/Logger.cs b/src/SourceGenerator.Foundations.Contracts/Diagnostics/Logger.cs
index f7519b1..7c532dc 100644
--- a/src/SourceGenerator.Foundations.Contracts/Diagnostics/Logger.cs
+++ b/src/SourceGenerator.Foundations.Contracts/Diagnostics/Logger.cs
@@ -5,7 +5,7 @@
namespace SGF.Diagnostics
{
///
- /// Implemention of a logger with custom sinks
+ /// Implementation of a logger with custom sinks
///
public class Logger : ILogger
{
diff --git a/src/SourceGenerator.Foundations.Contracts/Diagnostics/Sinks/ConsoleSink.cs b/src/SourceGenerator.Foundations.Contracts/Diagnostics/Sinks/ConsoleSink.cs
index 4603951..e0f006b 100644
--- a/src/SourceGenerator.Foundations.Contracts/Diagnostics/Sinks/ConsoleSink.cs
+++ b/src/SourceGenerator.Foundations.Contracts/Diagnostics/Sinks/ConsoleSink.cs
@@ -3,7 +3,7 @@
namespace SGF.Diagnostics.Sinks
{
///
- /// Sink used for outputing events to the console
+ /// Sink used for outputting events to the console
///
public class ConsoleSink : ILogSink
{
diff --git a/src/SourceGenerator.Foundations.Contracts/IGeneratorEnvironment.cs b/src/SourceGenerator.Foundations.Contracts/IGeneratorEnvironment.cs
index d53460a..9ff030d 100644
--- a/src/SourceGenerator.Foundations.Contracts/IGeneratorEnvironment.cs
+++ b/src/SourceGenerator.Foundations.Contracts/IGeneratorEnvironment.cs
@@ -4,8 +4,8 @@
namespace SGF
{
///
- /// Contains information about the enviroment that this source generator is running in. It allows you to
- /// star tthe debuggger and get the custom platform loggers based on the context.
+ /// Contains information about the environment that this source generator is running in. It allows you to
+ /// star the debugger and get the custom platform loggers based on the context.
///
public interface IGeneratorEnvironment
{
diff --git a/src/SourceGenerator.Foundations.Contracts/IO/SGFPath.cs b/src/SourceGenerator.Foundations.Contracts/IO/SGFPath.cs
index b9fd9cd..1091e25 100644
--- a/src/SourceGenerator.Foundations.Contracts/IO/SGFPath.cs
+++ b/src/SourceGenerator.Foundations.Contracts/IO/SGFPath.cs
@@ -15,7 +15,7 @@ public static class SGFPath
public const char WINDOWS_SEPARATOR = '\\';
///
- /// The separator used in linux paths
+ /// The separator used in Linux paths
///
public const char LINUX_SEPARATOR = '/';
@@ -59,7 +59,7 @@ public static bool HasWinRoot(string? path)
}
///
- /// Determines whether a given path is rooted to linux.
+ /// Determines whether a given path is rooted to Linux.
///
/// The path.
public static bool HasLinuxRoot(string? path)
@@ -183,7 +183,7 @@ public static bool IsRooted(string? path)
}
///
- /// Gets the separator char based off the rooted directory, if the path is not rooted we just return the default for the current platofrm.
+ /// Gets the separator char based off the rooted directory, if the path is not rooted we just return the default for the current platform.
///
/// The path.
///
diff --git a/src/SourceGenerator.Foundations.Contracts/IncrementalGenerator.cs b/src/SourceGenerator.Foundations.Contracts/IncrementalGenerator.cs
index 96f47ff..5112c41 100644
--- a/src/SourceGenerator.Foundations.Contracts/IncrementalGenerator.cs
+++ b/src/SourceGenerator.Foundations.Contracts/IncrementalGenerator.cs
@@ -12,8 +12,8 @@ namespace SGF
{
///
/// Used as a base class for creating your own source generator. This class provides some helper
- /// methods and impoved debugging expereince. The generator that implements this must apply the
- /// but not inheirt from
+ /// methods and improved debugging experience. The generator that implements this must apply the
+ /// but not inherit from
///
public abstract class IncrementalGenerator : IDisposable
{
@@ -60,18 +60,18 @@ protected IncrementalGenerator(string? name)
}
///
- /// Implement to initalize the incremental source generator
+ /// Implement to initialize the incremental source generator
/// summary >
public abstract void OnInitialize(SgfInitializationContext context);
///
/// Override to add logic for disposing this instance and free resources
///
- protected virtual void Dipose()
+ protected virtual void Dispose()
{ }
///
- /// Attaches the debugger automtically if you are running from Visual Studio. You have the option
+ /// Attaches the debugger automatically if you are running from Visual Studio. You have the option
/// to stop or just continue
///
protected void AttachDebugger()
@@ -81,7 +81,7 @@ protected void AttachDebugger()
}
///
- /// Raised when one of the generator functions throws an unhandle exception. Override this to define your own behaviour
+ /// Raised when one of the generator functions throws an unhandled exception. Override this to define your own behavior
/// to handle the exception.
///
/// The exception that was thrown
@@ -146,7 +146,7 @@ private static IGeneratorEnvironment CreateEnvironment()
///
void IDisposable.Dispose()
{
- Dipose();
+ Dispose();
}
}
}
\ No newline at end of file
diff --git a/src/SourceGenerator.Foundations.Contracts/SgfGeneratorAttribute.cs b/src/SourceGenerator.Foundations.Contracts/SgfGeneratorAttribute.cs
index f74a3df..74f227b 100644
--- a/src/SourceGenerator.Foundations.Contracts/SgfGeneratorAttribute.cs
+++ b/src/SourceGenerator.Foundations.Contracts/SgfGeneratorAttribute.cs
@@ -3,7 +3,7 @@
namespace SGF
{
///
- /// Applied a class the inheirts from
+ /// Applied a class that inherits from
/// that will have Source Generator Foundations wrapper generated around it. This adds
/// better error handling and logging to the given generator.
///
diff --git a/src/SourceGenerator.Foundations.Contracts/SgfInitializationContext.cs b/src/SourceGenerator.Foundations.Contracts/SgfInitializationContext.cs
index f5b3e2b..e5834f1 100644
--- a/src/SourceGenerator.Foundations.Contracts/SgfInitializationContext.cs
+++ b/src/SourceGenerator.Foundations.Contracts/SgfInitializationContext.cs
@@ -8,7 +8,7 @@ namespace SGF
{
///
/// Middleware wrapper around a to allow for
- /// wraping with exception handling and provide a better user expereince
+ /// wrapping with exception handling and provide a better user experience
///
public readonly struct SgfInitializationContext
{
diff --git a/src/SourceGenerator.Foundations.Contracts/SgfSourceProductionContext.cs b/src/SourceGenerator.Foundations.Contracts/SgfSourceProductionContext.cs
index b1310f0..baeb07d 100644
--- a/src/SourceGenerator.Foundations.Contracts/SgfSourceProductionContext.cs
+++ b/src/SourceGenerator.Foundations.Contracts/SgfSourceProductionContext.cs
@@ -23,7 +23,7 @@ public struct SgfSourceProductionContext
///
- /// A token that will be cancelled when generation should stop
+ /// A token that will be canceled when generation should stop
///
public CancellationToken CancellationToken => m_context.CancellationToken;
diff --git a/src/SourceGenerator.Foundations.Tests/BaseTest.cs b/src/SourceGenerator.Foundations.Tests/BaseTest.cs
index 800b9ed..5f49f53 100644
--- a/src/SourceGenerator.Foundations.Tests/BaseTest.cs
+++ b/src/SourceGenerator.Foundations.Tests/BaseTest.cs
@@ -13,7 +13,7 @@ public class BaseTest
protected BaseTest(ITestOutputHelper outputHelper)
{
- TestMethodName = "Unkonwn";
+ TestMethodName = "Unknown";
Type type = outputHelper.GetType();
FieldInfo? testField = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic);
ITest? test = testField?.GetValue(outputHelper) as ITest;
diff --git a/src/SourceGenerator.Foundations/Analyzer/Rules/AnalyzerRule.cs b/src/SourceGenerator.Foundations/Analyzer/Rules/AnalyzerRule.cs
index e6197f7..aa25e20 100644
--- a/src/SourceGenerator.Foundations/Analyzer/Rules/AnalyzerRule.cs
+++ b/src/SourceGenerator.Foundations/Analyzer/Rules/AnalyzerRule.cs
@@ -8,7 +8,7 @@ namespace SGF.Analyzer.Rules
internal abstract class AnalyzerRule
{
///
- /// Gets the descritor that this rule creates
+ /// Gets the descriptor that this rule creates
///
public DiagnosticDescriptor Descriptor { get; }
@@ -68,7 +68,7 @@ protected bool TryGetAttribute(ClassDeclarationSyntax classDeclaration, string n
{
const string POSTFIX = "Attribute";
- string alterntiveName = name.EndsWith(POSTFIX, StringComparison.Ordinal)
+ string alternativeName = name.EndsWith(POSTFIX, StringComparison.Ordinal)
? name.Substring(0, name.Length - POSTFIX.Length)
: $"{name}{POSTFIX}";
@@ -79,7 +79,7 @@ protected bool TryGetAttribute(ClassDeclarationSyntax classDeclaration, string n
string attributeName = attribute.Name.ToString();
if (string.Equals(attributeName, name, stringComparison) ||
- string.Equals(attributeName, alterntiveName, stringComparison))
+ string.Equals(attributeName, alternativeName, stringComparison))
{
return attribute;
}
diff --git a/src/SourceGenerator.Foundations/Analyzer/Rules/ProhibitGeneratorAttributeRule.cs b/src/SourceGenerator.Foundations/Analyzer/Rules/ProhibitGeneratorAttributeRule.cs
index 349a841..70c914b 100644
--- a/src/SourceGenerator.Foundations/Analyzer/Rules/ProhibitGeneratorAttributeRule.cs
+++ b/src/SourceGenerator.Foundations/Analyzer/Rules/ProhibitGeneratorAttributeRule.cs
@@ -4,9 +4,9 @@
namespace SGF.Analyzer.Rules
{
///
- /// Ensures tha the is not applied to
+ /// Ensures that the is not applied to
/// as these types are not really
- /// and won't be pickedup by Roslyn.
+ /// and won't be picked up by Roslyn.
///
internal class ProhibitGeneratorAttributeRule : AnalyzerRule
{
@@ -28,7 +28,7 @@ protected override void Analyze(ClassDeclarationSyntax classDeclaration)
private static DiagnosticDescriptor CreateDescriptor()
=> new DiagnosticDescriptor("SGF1002",
"Prohibit GeneratorAttribute",
- $"{{0}} has the {nameof(GeneratorAttribute)} which can't be applied to classes which are inheirting from the Generator Foundations type {nameof(IncrementalGenerator)}.",
+ $"{{0}} has the {nameof(GeneratorAttribute)} which can't be applied to classes which are inheriting from the Generator Foundations type {nameof(IncrementalGenerator)}.",
"SourceGeneration",
DiagnosticSeverity.Error,
true,
diff --git a/src/SourceGenerator.Foundations/Analyzer/SourceGeneratorAnalyzer.cs b/src/SourceGenerator.Foundations/Analyzer/SourceGeneratorAnalyzer.cs
index 21d4c04..9bf6d60 100644
--- a/src/SourceGenerator.Foundations/Analyzer/SourceGeneratorAnalyzer.cs
+++ b/src/SourceGenerator.Foundations/Analyzer/SourceGeneratorAnalyzer.cs
@@ -50,7 +50,7 @@ private void CheckForAttribute(SyntaxNodeAnalysisContext context)
}
///
- /// Returns back if the type inheirts from or not
+ /// Returns back if the type inherits from or not
///
/// The type to check
/// True if it does and false if it does not
diff --git a/src/SourceGenerator.Foundations/HoistSourceGenerator.cs b/src/SourceGenerator.Foundations/HoistSourceGenerator.cs
index 5a2162d..ec53197 100644
--- a/src/SourceGenerator.Foundations/HoistSourceGenerator.cs
+++ b/src/SourceGenerator.Foundations/HoistSourceGenerator.cs
@@ -51,10 +51,10 @@ private static bool IsSyntaxTargetForGeneration(SyntaxNode s)
private static SourceGeneratorDataModel? GetSemanticTargetForGeneration(GeneratorSyntaxContext context)
{
// we know the node is a ClassDeclarationSyntax thanks to IsSyntaxTargetForGeneration
- ClassDeclarationSyntax classDeclrationSyntax = (ClassDeclarationSyntax)context.Node;
+ ClassDeclarationSyntax classDeclarationSyntax = (ClassDeclarationSyntax)context.Node;
// loop through all the attributes on the method
- foreach (AttributeListSyntax attributeListSyntax in classDeclrationSyntax.AttributeLists)
+ foreach (AttributeListSyntax attributeListSyntax in classDeclarationSyntax.AttributeLists)
{
foreach (AttributeSyntax attributeSyntax in attributeListSyntax.Attributes)
{
@@ -71,7 +71,7 @@ private static bool IsSyntaxTargetForGeneration(SyntaxNode s)
if (fullName == "SGF.SgfGeneratorAttribute")
{
// return the enum. Implementation shown in section 7.
- return SourceGeneratorDataModel.Create(classDeclrationSyntax, context.SemanticModel);
+ return SourceGeneratorDataModel.Create(classDeclarationSyntax, context.SemanticModel);
}
}
}
diff --git a/src/SourceGenerator.Foundations/Models/SourceGeneratorDataModel.cs b/src/SourceGenerator.Foundations/Models/SourceGeneratorDataModel.cs
index a2198be..422e600 100644
--- a/src/SourceGenerator.Foundations/Models/SourceGeneratorDataModel.cs
+++ b/src/SourceGenerator.Foundations/Models/SourceGeneratorDataModel.cs
@@ -9,14 +9,14 @@ internal class SourceGeneratorDataModel
public string ClassName { get; }
public string Namespace { get; }
public string AccessModifier { get; }
- public string QualifedName { get; }
+ public string QualifiedName { get; }
public SourceGeneratorDataModel(string name, string @namespace, string accessModifier)
{
ClassName = name;
Namespace = @namespace;
AccessModifier = accessModifier;
- QualifedName = string.IsNullOrEmpty(Namespace) ? ClassName : $"{Namespace}.{ClassName}";
+ QualifiedName = string.IsNullOrEmpty(Namespace) ? ClassName : $"{Namespace}.{ClassName}";
}
public static SourceGeneratorDataModel? Create(ClassDeclarationSyntax classDeclarationSyntax, SemanticModel semanticModel)
diff --git a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props
index c5f3e05..f0686dc 100644
--- a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props
+++ b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props
@@ -1,7 +1,7 @@
@@ -35,7 +35,7 @@
Visible="$(SgfShowImports)">
SGF/Polyfills/Nullable/%(RecursiveDir)%(Filename)%(Extension)
-
+
@@ -24,7 +24,7 @@
-
+
@@ -38,13 +38,13 @@
-
+
-
+
diff --git a/src/SourceGenerator.Foundations/Templates/SourceGeneratorHoistBase.cs b/src/SourceGenerator.Foundations/Templates/SourceGeneratorHoistBase.cs
index d601d72..2424c0e 100644
--- a/src/SourceGenerator.Foundations/Templates/SourceGeneratorHoistBase.cs
+++ b/src/SourceGenerator.Foundations/Templates/SourceGeneratorHoistBase.cs
@@ -84,7 +84,7 @@ private static void OnAssemblyLoaded(object? sender, AssemblyLoadEventArgs args)
}
///
- /// Adds an assembly to the veriuos collections used to keep track of loaded items
+ /// Adds an assembly to the various collections used to keep track of loaded items
///
private static void AddAssembly(Assembly assembly)
{
@@ -142,10 +142,10 @@ private static void AddAssembly(Assembly assembly)
///
- /// Attempts to load an assembly that is contained within aonther assembly as a resource
+ /// Attempts to load an assembly that is contained within another assembly as a resource
///
/// The assembly that should contain the resource
- /// The expected name of the reosurce
+ /// The expected name of the resource
/// The assembly if it was loaded
/// True if the assembly could be loaded otherwise false
private static bool TryExtractingAssembly(Assembly assembly, string resourceName, out Assembly? loadedAssembly)
diff --git a/src/SourceGenerator.Foundations/Templates/SourceGeneratorHostImpl.cs b/src/SourceGenerator.Foundations/Templates/SourceGeneratorHostImpl.cs
index 543d42d..0d863e4 100644
--- a/src/SourceGenerator.Foundations/Templates/SourceGeneratorHostImpl.cs
+++ b/src/SourceGenerator.Foundations/Templates/SourceGeneratorHostImpl.cs
@@ -64,7 +64,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
}
catch (Exception exception)
{
- logger.Error(exception, $"Error! An unhandle exception was thrown while initializing the source generator '{{dataModel.QualifedName}}'.");
+ logger.Error(exception, $"Error! An unhandled exception was thrown while initializing the source generator '{{dataModel.QualifiedName}}'.");
}
}
@@ -74,7 +74,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
Type[] typeArguments = new Type[] { };
BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
- Type generatorType = typeof(global::{{dataModel.QualifedName}});
+ Type generatorType = typeof(global::{{dataModel.QualifiedName}});
ConstructorInfo? constructor = generatorType.GetConstructor(bindingFlags, null, typeArguments, Array.Empty());
if(constructor == null)
@@ -83,7 +83,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
}
object[] constructorArguments = new object[]{};
- IncrementalGenerator generator = (global::{{dataModel.QualifedName}})constructor.Invoke(constructorArguments);
+ IncrementalGenerator generator = (global::{{dataModel.QualifiedName}})constructor.Invoke(constructorArguments);
return generator;
}