-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix snippet for abstract method (#82)
- Loading branch information
1 parent
c25064e
commit d8b46c4
Showing
13 changed files
with
126 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...ippetica.CodeGeneration.Metadata/Snippetica.CSharp/AutoGeneration/Abstract/Method.snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!--Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0.--> | ||
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<Header> | ||
<Title>@type@ method</Title> | ||
<Shortcut>m</Shortcut> | ||
<Description>@type@ method declaration</Description> | ||
<Author>Josef Pihrt</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
<Keywords> | ||
<Keyword>Meta-AbstractModifierRequired</Keyword> | ||
<Keyword>Meta-GenerateAbstractModifier</Keyword> | ||
<Keyword>Meta-GenerateAccessModifier</Keyword> | ||
<Keyword>Meta-GenerateProtectedModifier</Keyword> | ||
</Keywords> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal> | ||
<ID>_modifiers</ID> | ||
<ToolTip>Modifier(s)</ToolTip> | ||
<Default>public</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>_parameters</ID> | ||
<ToolTip>List of parameters</ToolTip> | ||
<Default>T parameter</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>name</ID> | ||
<ToolTip>Method name</ToolTip> | ||
<Default>MethodName</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>type</ID> | ||
<ToolTip>Return type</ToolTip> | ||
<Default>void</Default> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="CSharp"><![CDATA[$_modifiers$ $type$ $name$($_parameters$);$end$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...ica.CodeGeneration.Metadata/Snippetica.VisualBasic/AutoGeneration/Abstract/Method.snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!--Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0.--> | ||
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<Header> | ||
<Title>@type@ method</Title> | ||
<Shortcut>m</Shortcut> | ||
<Description>@type@ method declaration</Description> | ||
<Author>Josef Pihrt</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
<Keywords> | ||
<Keyword>Meta-AbstractModifierRequired</Keyword> | ||
<Keyword>Meta-GenerateAbstractModifier</Keyword> | ||
<Keyword>Meta-GenerateAccessModifier</Keyword> | ||
<Keyword>Meta-GenerateProtectedModifier</Keyword> | ||
<Keyword>Meta-GenerateVoidType</Keyword> | ||
<Keyword>Meta-NonUniqueShortcut</Keyword> | ||
</Keywords> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>_as</ID> | ||
<ToolTip>As keyword</ToolTip> | ||
<Default>As</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>_modifiers</ID> | ||
<ToolTip>Modifier(s)</ToolTip> | ||
<Default>Public</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>_parameters</ID> | ||
<ToolTip>List of parameters</ToolTip> | ||
<Default>parameter As T</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>_subOrFunction</ID> | ||
<ToolTip>Sub or Function</ToolTip> | ||
<Default>Function</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>name</ID> | ||
<ToolTip>Method name</ToolTip> | ||
<Default>MethodName</Default> | ||
</Literal> | ||
<Literal> | ||
<ID>type</ID> | ||
<ToolTip>Return type</ToolTip> | ||
<Default>Object</Default> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="VB"><![CDATA[$_modifiers$ $_subOrFunction$ $name$($_parameters$) $_as$ $type$$end$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Snippetica.VisualStudioCode.Vsix.Dev/Snippetica.CSharp.Dev/package/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# C\# Snippets | ||
|
||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/vscode) for further information\. | ||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/snippets/vscode/csharp) for further information\. |
2 changes: 1 addition & 1 deletion
2
src/Snippetica.VisualStudioCode.Vsix.Dev/Snippetica.Cpp.Dev/package/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# C\+\+ Snippets | ||
|
||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/vscode) for further information\. | ||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/snippets/vscode/cpp) for further information\. |
2 changes: 1 addition & 1 deletion
2
...ippetica.VisualStudioCode.Vsix.Dev/Snippetica.VisualBasic.Dev/package/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# VB Snippets | ||
|
||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/vscode) for further information\. | ||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/snippets/vscode/vb) for further information\. |
2 changes: 1 addition & 1 deletion
2
src/Snippetica.VisualStudioCode.Vsix/Snippetica.VisualBasic/package/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Visual Basic Snippets | ||
# VB Snippets | ||
|
||
Please see [documentation](https://josefpihrt.github.io/docs/snippetica/snippets/vscode/vb) for further information\. |