55 references to _elementLocation
Microsoft.Build.Engine.UnitTests (55)
Parser_Tests.cs (55)
30GenericExpressionNode tree = p.Parse("$(foo)", ParserOptions.AllowAll, _elementLocation); 33tree = p.Parse("$(foo)=='hello'", ParserOptions.AllowAll, _elementLocation); 36tree = p.Parse("$(foo)==''", ParserOptions.AllowAll, _elementLocation); 39tree = p.Parse("$(debug) and $(buildlab) and $(full)", ParserOptions.AllowAll, _elementLocation); 42tree = p.Parse("$(debug) or $(buildlab) or $(full)", ParserOptions.AllowAll, _elementLocation); 45tree = p.Parse("$(debug) and $(buildlab) or $(full)", ParserOptions.AllowAll, _elementLocation); 48tree = p.Parse("$(full) or $(debug) and $(buildlab)", ParserOptions.AllowAll, _elementLocation); 51tree = p.Parse("%(culture)", ParserOptions.AllowAll, _elementLocation); 54tree = p.Parse("%(culture)=='french'", ParserOptions.AllowAll, _elementLocation); 57tree = p.Parse("'foo_%(culture)'=='foo_french'", ParserOptions.AllowAll, _elementLocation); 60tree = p.Parse("true", ParserOptions.AllowAll, _elementLocation); 63tree = p.Parse("false", ParserOptions.AllowAll, _elementLocation); 66tree = p.Parse("0", ParserOptions.AllowAll, _elementLocation); 69tree = p.Parse("0.0 == 0", ParserOptions.AllowAll, _elementLocation); 79GenericExpressionNode tree = p.Parse("$(foo)", ParserOptions.AllowAll, _elementLocation); 82tree = p.Parse("($(foo) or $(bar)) and $(baz)", ParserOptions.AllowAll, _elementLocation); 85tree = p.Parse("$(foo) <= 5 and $(bar) >= 15", ParserOptions.AllowAll, _elementLocation); 88tree = p.Parse("(($(foo) <= 5 and $(bar) >= 15) and $(baz) == simplestring) and 'a more complex string' != $(quux)", ParserOptions.AllowAll, _elementLocation); 91tree = p.Parse("(($(foo) or $(bar) == false) and !($(baz) == simplestring))", ParserOptions.AllowAll, _elementLocation); 94tree = p.Parse("(($(foo) or Exists('c:\\foo.txt')) and !(($(baz) == simplestring)))", ParserOptions.AllowAll, _elementLocation); 97tree = p.Parse("'CONTAINS%27QUOTE%27' == '$(TestQuote)'", ParserOptions.AllowAll, _elementLocation); 107GenericExpressionNode tree = p.Parse("!true", ParserOptions.AllowAll, _elementLocation); 109tree = p.Parse("!(true)", ParserOptions.AllowAll, _elementLocation); 111tree = p.Parse("!($(foo) <= 5)", ParserOptions.AllowAll, _elementLocation); 113tree = p.Parse("!(%(foo) <= 5)", ParserOptions.AllowAll, _elementLocation); 115tree = p.Parse("!($(foo) <= 5 and $(bar) >= 15)", ParserOptions.AllowAll, _elementLocation); 124GenericExpressionNode tree = p.Parse("SimpleFunctionCall()", ParserOptions.AllowAll, _elementLocation); 126tree = p.Parse("SimpleFunctionCall( 1234 )", ParserOptions.AllowAll, _elementLocation); 127tree = p.Parse("SimpleFunctionCall( true )", ParserOptions.AllowAll, _elementLocation); 128tree = p.Parse("SimpleFunctionCall( $(property) )", ParserOptions.AllowAll, _elementLocation); 130tree = p.Parse("SimpleFunctionCall( $(property), 1234, abcd, 'abcd efgh' )", ParserOptions.AllowAll, _elementLocation); 142tree = p.Parse("@(foo) == 'a.cs;b.cs'", ParserOptions.AllowProperties, _elementLocation); 154tree = p.Parse("'a.cs;b.cs' == @(foo)", ParserOptions.AllowProperties, _elementLocation); 166tree = p.Parse("'@(foo)' == 'a.cs;b.cs'", ParserOptions.AllowProperties, _elementLocation); 178tree = p.Parse("'otherstuff@(foo)' == 'a.cs;b.cs'", ParserOptions.AllowProperties, _elementLocation); 190tree = p.Parse("'@(foo)otherstuff' == 'a.cs;b.cs'", ParserOptions.AllowProperties, _elementLocation); 202tree = p.Parse("somefunction(@(foo), 'otherstuff')", ParserOptions.AllowProperties, _elementLocation); 219ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 224ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 228ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 241tree = p.Parse("%(foo) == 'a.cs;b.cs'", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 253tree = p.Parse("'a.cs;b.cs' == %(foo)", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 265tree = p.Parse("'%(foo)' == 'a.cs;b.cs'", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 277tree = p.Parse("'otherstuff%(foo)' == 'a.cs;b.cs'", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 289tree = p.Parse("'%(foo)otherstuff' == 'a.cs;b.cs'", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 301tree = p.Parse("somefunction(%(foo), 'otherstuff')", ParserOptions.AllowProperties | ParserOptions.AllowItemLists, _elementLocation); 325tree = p.Parse("'a more complex' == 'asdf", ParserOptions.AllowAll, _elementLocation); 338tree = p.Parse("(($(foo) <= 5 and $(bar) >= 15) and $(baz) == 'simple string) and 'a more complex string' != $(quux)", ParserOptions.AllowAll, _elementLocation); 350tree = p.Parse("($(foo) == 'simple string') $(bar)", ParserOptions.AllowAll, _elementLocation); 363tree = p.Parse("=='x'", ParserOptions.AllowAll, _elementLocation); 376tree = p.Parse("==", ParserOptions.AllowAll, _elementLocation); 389tree = p.Parse(">", ParserOptions.AllowAll, _elementLocation); 401tree = p.Parse("true!=false==", ParserOptions.AllowAll, _elementLocation); 414tree = p.Parse("true!=false==true", ParserOptions.AllowAll, _elementLocation); 426tree = p.Parse("1==(2", ParserOptions.AllowAll, _elementLocation);